diff options
author | Sascha Schumann <sas@php.net> | 2001-09-19 11:03:58 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2001-09-19 11:03:58 +0000 |
commit | e261d310a04e251390e40eadcd5dddb28cf8329e (patch) | |
tree | bd157aca52d45f5712d910f547f4ccd42aafd04f /ext | |
parent | c6a957e0125d7bba03a2479e17956a067beb80d1 (diff) | |
download | php-git-e261d310a04e251390e40eadcd5dddb28cf8329e.tar.gz |
quickly fix newly introdued off-by-one
Diffstat (limited to 'ext')
-rw-r--r-- | ext/standard/math.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/math.c b/ext/standard/math.c index a8dec98310..28ca255721 100644 --- a/ext/standard/math.c +++ b/ext/standard/math.c @@ -718,7 +718,7 @@ _php_math_basetozval(zval *arg, int base, zval *ret) { s = Z_STRVAL_P(arg); - for (i = Z_STRLEN_P(arg); i >= 0; i--) { + for (i = Z_STRLEN_P(arg); i > 0; i--) { c = *s++; digit = (c >= '0' && c <= '9') ? c - '0' |