include <ctype.h>, cast argument to isspace to unsigned char
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14519 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -42,6 +42,7 @@ RCSID("$Id$");
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <ctype.h>
|
||||||
#ifdef HAVE_PATHS_H
|
#ifdef HAVE_PATHS_H
|
||||||
#include <paths.h>
|
#include <paths.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -179,7 +180,7 @@ initshells()
|
|||||||
if (*cp == '#' || *cp == '\0')
|
if (*cp == '#' || *cp == '\0')
|
||||||
continue;
|
continue;
|
||||||
*sp++ = cp;
|
*sp++ = cp;
|
||||||
while (!isspace(*cp) && *cp != '#' && *cp != '\0')
|
while (!isspace((unsigned char)*cp) && *cp != '#' && *cp != '\0')
|
||||||
cp++;
|
cp++;
|
||||||
*cp++ = '\0';
|
*cp++ = '\0';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user