diff options
author | mmcc <mmcc@cvs.openbsd.org> | 2015-10-23 18:50:55 +0000 |
---|---|---|
committer | mmcc <mmcc@cvs.openbsd.org> | 2015-10-23 18:50:55 +0000 |
commit | e8223525d15329015410faa4a6bc9076660b4dd7 (patch) | |
tree | 5b9e263e176721a275c11fab03c409b056c46da6 /regress/sys | |
parent | 6ec01d9c6e8b954e943386ce16e87a6de633f6fd (diff) |
Cast isdigit() argument to unsigned char.
Diffstat (limited to 'regress/sys')
-rw-r--r-- | regress/sys/kern/pledge/generic/manager.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/sys/kern/pledge/generic/manager.c b/regress/sys/kern/pledge/generic/manager.c index 4f8121cd1fa..334d9238097 100644 --- 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'; |