mirror of
https://github.com/php/php-src.git
synced 2024-11-23 01:44:06 +08:00
Fix i386 release build warning
Closes GH-16730
This commit is contained in:
parent
efe4fc9f99
commit
ec3de14afb
@ -97,7 +97,7 @@ PHPAPI int php_getopt(int argc, char* const *argv, const opt_struct opts[], char
|
||||
arg_start = 2;
|
||||
|
||||
/* Check for <arg>=<val> */
|
||||
if ((pos = php_memnstr(&argv[*optind][arg_start], "=", 1, argv[*optind]+arg_end)) != NULL) {
|
||||
if ((pos = memchr(&argv[*optind][arg_start], '=', arg_end - arg_start)) != NULL) {
|
||||
arg_end = pos-&argv[*optind][arg_start];
|
||||
arg_start++;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user