mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Fix i386 release build warning
Closes GH-16730
This commit is contained in:
parent
efe4fc9f99
commit
ec3de14afb
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ PHPAPI int php_getopt(int argc, char* const *argv, const opt_struct opts[], char
|
||||||
arg_start = 2;
|
arg_start = 2;
|
||||||
|
|
||||||
/* Check for <arg>=<val> */
|
/* 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_end = pos-&argv[*optind][arg_start];
|
||||||
arg_start++;
|
arg_start++;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue