Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/usr.sbin/wiconfig Pull up revision 1.10 (requested by j...
details: https://anonhg.NetBSD.org/src/rev/45e37e27602c
branches: netbsd-1-5
changeset: 490617:45e37e27602c
user: he <he%NetBSD.org@localhost>
date: Sat Feb 03 21:19:26 2001 +0000
description:
Pull up revision 1.10 (requested by jdolecek):
Cast isprint() parameter to (unsigned char) - it looses if the
character has high bit set when the architecture is using signed
char by default. Fixes PR#11556.
diffstat:
usr.sbin/wiconfig/wiconfig.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 06ec77b1e3c1 -r 45e37e27602c usr.sbin/wiconfig/wiconfig.c
--- a/usr.sbin/wiconfig/wiconfig.c Sat Feb 03 21:12:49 2001 +0000
+++ b/usr.sbin/wiconfig/wiconfig.c Sat Feb 03 21:19:26 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wiconfig.c,v 1.5.4.2 2000/08/07 01:11:28 enami Exp $ */
+/* $NetBSD: wiconfig.c,v 1.5.4.3 2001/02/03 21:19:26 he Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -69,7 +69,7 @@
static const char copyright[] = "@(#) Copyright (c) 1997, 1998, 1999\
Bill Paul. All rights reserved.";
static const char rcsid[] =
- "@(#) $Id: wiconfig.c,v 1.5.4.2 2000/08/07 01:11:28 enami Exp $";
+ "@(#) $Id: wiconfig.c,v 1.5.4.3 2001/02/03 21:19:26 he Exp $";
#endif
struct wi_table {
@@ -359,7 +359,7 @@
k = &keys->wi_keys[i];
ptr = (char *)k->wi_keydat;
for (j = 0; j < k->wi_keylen; j++) {
- if (!isprint(ptr[j])) {
+ if (!isprint((unsigned char) ptr[j])) {
bn = 1;
break;
}
Home |
Main Index |
Thread Index |
Old Index