Commit e8223525 authored by mmcc's avatar mmcc
Browse files

Cast isdigit() argument to unsigned char.

parent 6ec01d9c
/* $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';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment