mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00
Fix Rasmus's patch for bug #44929.
This commit is contained in:
parent
452f71b63c
commit
11960bfb40
1 changed files with 2 additions and 2 deletions
|
@ -112,10 +112,10 @@ PHPAPI int strnatcmp_ex(char const *a, size_t a_len, char const *b, size_t b_len
|
|||
ca = a[ai]; cb = b[bi];
|
||||
|
||||
/* skip over leading spaces or zeros */
|
||||
while (isspace((int)(unsigned char)ca) || (ca == '0' && ap+1 < aend))
|
||||
while (isspace((int)(unsigned char)ca) || (ca == '0' && ai+1 < a_len))
|
||||
ca = a[++ai];
|
||||
|
||||
while (isspace((int)(unsigned char)cb) || (cb == '0' && bp+1 < bend))
|
||||
while (isspace((int)(unsigned char)cb) || (cb == '0' && bi+1 < b_len))
|
||||
cb = b[++bi];
|
||||
|
||||
/* process run of digits */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue