Skip to content

Commit 60fd91e

Browse files
committed
Change escape condition
1 parent 0afe7da commit 60fd91e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/proc_open.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ static void append_win_escaped_arg(smart_str *str, zend_string *arg)
498498
size_t num_bs = 0;
499499

500500
smart_str_appendc(str, '"');
501-
for (size_t i = 0; i <= ZSTR_LEN(arg); ++i) {
501+
for (size_t i = 0; i < ZSTR_LEN(arg); ++i) {
502502
char c = ZSTR_VAL(arg)[i];
503503
if (c == '\\') {
504504
num_bs++;

0 commit comments

Comments
 (0)