1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 10:43:30 +02:00

Also fix overflow in wordwrap

This commit is contained in:
Stanislav Malyshev
2016-09-05 18:10:51 -07:00
parent 6d55ba2656
commit 65c8caafa8
+1 -1
View File
@@ -1011,7 +1011,7 @@ PHP_FUNCTION(wordwrap)
/* free unused memory */
newtext = erealloc(newtext, newtextlen+1);
RETURN_STRINGL(newtext, newtextlen, 0);
RETVAL_STRINGL_CHECK(newtext, newtextlen, 0);
}
}
/* }}} */