Skip to content

Commit ec3de14

Browse files
committed
Fix i386 release build warning
Closes phpGH-16730
1 parent efe4fc9 commit ec3de14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/getopt.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ PHPAPI int php_getopt(int argc, char* const *argv, const opt_struct opts[], char
9797
arg_start = 2;
9898

9999
/* Check for <arg>=<val> */
100-
if ((pos = php_memnstr(&argv[*optind][arg_start], "=", 1, argv[*optind]+arg_end)) != NULL) {
100+
if ((pos = memchr(&argv[*optind][arg_start], '=', arg_end - arg_start)) != NULL) {
101101
arg_end = pos-&argv[*optind][arg_start];
102102
arg_start++;
103103
} else {

0 commit comments

Comments
 (0)