mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
Ensure that islower is called with int.
This commit is contained in:
parent
acf87ed0b5
commit
b57bb9136a
@ -15,14 +15,14 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: gen.c,v 1.28 1999/10/08 22:57:20 tale Exp $ */
|
/* $Id: gen.c,v 1.29 1999/10/25 17:04:55 marka Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <malloc.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -143,9 +143,9 @@ char *
|
|||||||
upper(char *s) {
|
upper(char *s) {
|
||||||
static char buf[11];
|
static char buf[11];
|
||||||
char *b = buf;
|
char *b = buf;
|
||||||
char c;
|
int c;
|
||||||
|
|
||||||
while ((c = *s++)) {
|
while ((c = (*s++) & 0xff)) {
|
||||||
|
|
||||||
*b++ = islower(c) ? toupper(c) : c;
|
*b++ = islower(c) ? toupper(c) : c;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user