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:
@@ -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);
|
||||
}
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
Reference in New Issue
Block a user