summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-12-25 22:12:46 +0000
committerAntony Dovgal <tony2001@php.net>2006-12-25 22:12:46 +0000
commit6ac8ffdfea108696fe32b4738b779a00d2d4328c (patch)
treebfe2005c668dcb84ec3e690ebd11eb9ca5cc032a /ext
parent7dc788274595a015ba281091f8673a7eb570ebf3 (diff)
downloadphp-git-6ac8ffdfea108696fe32b4738b779a00d2d4328c.tar.gz
MFH
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/streamsfuncs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c
index 3fbc4dd6ba..efd71e0e84 100644
--- a/ext/standard/streamsfuncs.c
+++ b/ext/standard/streamsfuncs.c
@@ -361,7 +361,7 @@ PHP_FUNCTION(stream_socket_recvfrom)
RETURN_FALSE;
}
- read_buf = emalloc(to_read + 1);
+ read_buf = safe_emalloc(1, to_read, 1);
recvd = php_stream_xport_recvfrom(stream, read_buf, to_read, flags, NULL, NULL,
zremote ? &Z_STRVAL_P(zremote) : NULL,