Browse Source

allocate space for NUL

experimental/new_ui_api
Sascha Schumann 24 years ago
parent
commit
5e25c15d6c
  1. 2
      ext/dio/dio.c

2
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);

Loading…
Cancel
Save