Skip to content

Commit 7bb52dd

Browse files
committed
backport missing rev bfdc9e2
1 parent 1efe5b1 commit 7bb52dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/sockets/conversions.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ static void from_zval_write_control(const zval *arr,
910910
if (space_left < req_space) {
911911
*control_buf = safe_erealloc(*control_buf, 2, req_space, *control_len);
912912
*control_len += 2 * req_space;
913-
memset(*control_buf + *offset, '\0', *control_len - *offset);
913+
memset((char *)*control_buf + *offset, '\0', *control_len - *offset);
914914
memcpy(&alloc->data, control_buf, sizeof *control_buf);
915915
}
916916

0 commit comments

Comments
 (0)