summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2002-04-20 18:58:20 +0000
committerSascha Schumann <sas@php.net>2002-04-20 18:58:20 +0000
commit5e25c15d6c41dc53e5657b676bd9a9cecacbaced (patch)
tree10295306999fb0954890a63c9c87dca6f4d88561
parent6075a65319b41735d0bd3741177be719da96b3db (diff)
downloadphp-git-5e25c15d6c41dc53e5657b676bd9a9cecacbaced.tar.gz
allocate space for NUL
-rw-r--r--ext/dio/dio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dio/dio.c b/ext/dio/dio.c
index 7f25bf17df..90ba912fc3 100644
--- a/ext/dio/dio.c
+++ b/ext/dio/dio.c
@@ -188,7 +188,7 @@ PHP_FUNCTION(dio_read)
RETURN_NULL();
}
- data = erealloc(data, res);
+ data = erealloc(data, res + 1);
data[res] = 0;
RETURN_STRINGL(data, res, 0);