summaryrefslogtreecommitdiff
path: root/bin/ksh/exec.c
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2005-04-19 20:14:29 +0000
committerrillig <rillig@NetBSD.org>2005-04-19 20:14:29 +0000
commit4f6457e756ef5a3814833a4bba755fe77b35c87e (patch)
treef3846d6fdf66d47a8e564e826c96d1baddb25944 /bin/ksh/exec.c
parent117d073a602490e284a22f09222a2504a5768b39 (diff)
Fixed wrong use of the <ctype.h> functions by adding an explicit conversion
to unsigned char. Approved by christos.
Diffstat (limited to 'bin/ksh/exec.c')
-rw-r--r--bin/ksh/exec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ksh/exec.c b/bin/ksh/exec.c
index c640816bb62..0a36effd4d5 100644
--- a/bin/ksh/exec.c
+++ b/bin/ksh/exec.c
@@ -1,4 +1,4 @@
-/* $NetBSD: exec.c,v 1.9 2004/07/07 19:20:09 mycroft Exp $ */
+/* $NetBSD: exec.c,v 1.10 2005/04/19 20:14:29 rillig Exp $ */
/*
* execute command tree
@@ -6,7 +6,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: exec.c,v 1.9 2004/07/07 19:20:09 mycroft Exp $");
+__RCSID("$NetBSD: exec.c,v 1.10 2005/04/19 20:14:29 rillig Exp $");
#endif
@@ -782,7 +782,7 @@ scriptexec(tp, ap)
}
if ((buf[0] == '#' && buf[1] == '!' && (cp = &buf[2]))
# ifdef OS2
- || (strncmp(buf, "extproc", 7) == 0 && isspace(buf[7])
+ || (strncmp(buf, "extproc", 7) == 0 && isspace((unsigned char)buf[7])
&& (cp = &buf[7]))
# endif /* OS2 */
)