summaryrefslogtreecommitdiff
path: root/ext/standard/exec.c
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2003-04-16 21:40:48 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2003-04-16 21:40:48 +0000
commit0c5548e636ba3e9831f482ce236d05844e3a0a85 (patch)
tree7cb0db577d0f45e45fc97440d1cc14c89d7671d8 /ext/standard/exec.c
parent0ad2fc2007eaf12c9081b2bcd655ed138998711f (diff)
downloadphp-git-0c5548e636ba3e9831f482ce236d05844e3a0a85.tar.gz
Fixed implicit cast issue with is*() and to*() functions
Diffstat (limited to 'ext/standard/exec.c')
-rw-r--r--ext/standard/exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/exec.c b/ext/standard/exec.c
index 7d17c8e00f..da7a854d29 100644
--- a/ext/standard/exec.c
+++ b/ext/standard/exec.c
@@ -134,7 +134,7 @@ int php_exec(int type, char *cmd, pval *array, pval *return_value TSRMLS_DC)
} else if (type == 2) {
/* strip trailing whitespaces */
l = bufl;
- while (l-- && isspace(buf[l]));
+ while (l-- && isspace(((unsigned char *)buf)[l]));
if (l != (bufl - 1)) {
bufl = l + 1;
buf[bufl] = '\0';
@@ -147,7 +147,7 @@ int php_exec(int type, char *cmd, pval *array, pval *return_value TSRMLS_DC)
/* strip trailing whitespaces if we have not done so already */
if (type != 2) {
l = bufl;
- while (l-- && isspace(buf[l]));
+ while (l-- && isspace(((unsigned char *)buf)[l]));
if (l != (bufl - 1)) {
bufl = l + 1;
buf[bufl] = '\0';