artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c63f6b
)
Cast isdigit() argument to unsigned char.
author
mmcc
<mmcc@openbsd.org>
Fri, 23 Oct 2015 18:50:54 +0000
(18:50 +0000)
committer
mmcc
<mmcc@openbsd.org>
Fri, 23 Oct 2015 18:50:54 +0000
(18:50 +0000)
regress/sys/kern/pledge/generic/manager.c
patch
|
blob
|
history
diff --git
a/regress/sys/kern/pledge/generic/manager.c
b/regress/sys/kern/pledge/generic/manager.c
index
4f8121c
..
334d923
100644
(file)
--- a/
regress/sys/kern/pledge/generic/manager.c
+++ b/
regress/sys/kern/pledge/generic/manager.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: manager.c,v 1.
3 2015/10/18 12:25:33 semarie
Exp $ */
+/* $OpenBSD: manager.c,v 1.
4 2015/10/23 18:50:54 mmcc
Exp $ */
/*
* Copyright (c) 2015 Sebastien Marie <semarie@openbsd.org>
*
@@
-128,8
+128,8
@@
grab_syscall(pid_t pid)
const char *errstr = NULL;
char *c;
/* truncate at first no-number */
- for (c = line + searchlen; (*c != '\0') && isdigit(*c);
- c++)
+ for (c = line + searchlen; (*c != '\0') && isdigit(
(unsigned char)
*c);
+
c++)
;
*c = '\0';