Skip to content

Commit a86833c

Browse files
author
Jason Greene
committed
Merge overflow fix
1 parent dc1ff44 commit a86833c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/sockets/sockets.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ PHP_FUNCTION(socket_recv)
12631263
zval_dtor(buf);
12641264
Z_TYPE_P(buf)=IS_NULL;
12651265
} else {
1266-
recv_buf[retval+1] = '\0';
1266+
recv_buf[retval] = '\0';
12671267

12681268
/* Rebuild buffer zval */
12691269
zval_dtor(buf);

0 commit comments

Comments
 (0)