diff options
Diffstat (limited to 'ext/standard/exec.c')
-rw-r--r-- | ext/standard/exec.c | 4 |
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'; |