Skip to content

Commit e895752

Browse files
committed
fix missing thing on windows
1 parent f363689 commit e895752

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/phpdbg/phpdbg_out.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static int phpdbg_process_print(int fd, int type, const char *msg, int msglen) {
8181

8282
case P_WRITE:
8383
if (msg) {
84-
msgout = strndup(msg, msglen);
84+
msgout = pestrndup(msg, msglen, 1);
8585
msgoutlen = msglen;
8686
PHPDBG_G(last_was_newline) = msg[msglen - 1] == '\n';
8787
} else {

0 commit comments

Comments
 (0)