artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3a421a
)
Cast isdigit()'s argument to unsigned char.
author
mmcc
<mmcc@openbsd.org>
Mon, 26 Oct 2015 02:33:07 +0000
(
02:33
+0000)
committer
mmcc
<mmcc@openbsd.org>
Mon, 26 Oct 2015 02:33:07 +0000
(
02:33
+0000)
ok guenther@
sys/lib/libsa/net.c
patch
|
blob
|
history
diff --git
a/sys/lib/libsa/net.c
b/sys/lib/libsa/net.c
index
cd9f671
..
f2ccb46
100644
(file)
--- a/
sys/lib/libsa/net.c
+++ b/
sys/lib/libsa/net.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: net.c,v 1.1
8 2015/07/16 16:12:15 mpi Exp $
*/
+/* $OpenBSD: net.c,v 1.1
9 2015/10/26 02:33:07 mmcc Exp $
*/
/* $NetBSD: net.c,v 1.14 1996/10/13 02:29:02 christos Exp $ */
/*
@@
-233,7
+233,7
@@
intoa(u_int32_t addr)
static const char *
number(const char *s, int *n)
{
- for (*n = 0; isdigit(*s); s++)
+ for (*n = 0; isdigit(
(unsigned char)
*s); s++)
*n = (*n * 10) + *s - '0';
return s;
}