mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
allocate space for NUL
This commit is contained in:
parent
6075a65319
commit
5e25c15d6c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user