Index: trunk/php/wmerrors/wmerrors.c |
— | — | @@ -341,7 +341,7 @@ |
342 | 342 | /* Write it */ |
343 | 343 | convert_to_string(trace); |
344 | 344 | WMERRORS_G(recursion_guard) = 2; |
345 | | - Z_STRVAL_P(trace) = erealloc(Z_STRVAL_P(trace), Z_STRLEN_P(trace)+sizeof(PHP_EOL)+1); |
| 345 | + Z_STRVAL_P(trace) = erealloc( Z_STRVAL_P(trace), Z_STRLEN_P(trace)+sizeof(PHP_EOL) ); |
346 | 346 | memcpy(Z_STRVAL_P(trace) + Z_STRLEN_P(trace), PHP_EOL, sizeof(PHP_EOL)); |
347 | 347 | php_stream_write(logfile_stream, Z_STRVAL_P(trace), Z_STRLEN_P(trace) TSRMLS_CC); |
348 | 348 | WMERRORS_G(recursion_guard) = 1; |