mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Fix i386 release build warning
Closes GH-16730
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user