From abf7e5001bf7783de411f1fc077d796b3667564a Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Sat, 27 Nov 2004 19:16:26 +0000 Subject: Use unsigned char for bytes that are fed to isxxx() functions, to improve portability. Spotted by YAMAMOTO Takashi. ok millert@ --- usr.bin/diff/diffreg.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.bin/diff/diffreg.c') diff --git a/usr.bin/diff/diffreg.c b/usr.bin/diff/diffreg.c index b59a8385c08..4b406f6ce86 100644 --- a/usr.bin/diff/diffreg.c +++ b/usr.bin/diff/diffreg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diffreg.c,v 1.59 2004/10/20 08:52:19 otto Exp $ */ +/* $OpenBSD: diffreg.c,v 1.60 2004/11/27 19:16:25 otto Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. @@ -65,7 +65,7 @@ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: diffreg.c,v 1.59 2004/10/20 08:52:19 otto Exp $"; +static const char rcsid[] = "$OpenBSD: diffreg.c,v 1.60 2004/11/27 19:16:25 otto Exp $"; #endif /* not lint */ #include @@ -1276,7 +1276,7 @@ readhash(FILE *f) static int asciifile(FILE *f) { - char buf[BUFSIZ]; + unsigned char buf[BUFSIZ]; int i, cnt; if (aflag || f == NULL) @@ -1303,7 +1303,7 @@ static __inline int max(int a, int b) static char * match_function(const long *f, int pos, FILE *file) { - char buf[FUNCTION_CONTEXT_SIZE]; + unsigned char buf[FUNCTION_CONTEXT_SIZE]; size_t nc; int last = lastline; char *p; -- cgit v1.2.3