mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
Fix incorrect length calculation
sizeof char pointer != sizeof string literal.
This commit is contained in:
parent
fb0faf0208
commit
6e2c54d3e7
1 changed files with 1 additions and 1 deletions
|
@ -420,7 +420,7 @@ static inline ssize_t zlog_stream_unbuffered_write(
|
|||
append = NULL;
|
||||
} else {
|
||||
append = "...";
|
||||
append_len = sizeof(append) - 1;
|
||||
append_len = sizeof("...") - 1;
|
||||
len = zlog_limit - stream->len - append_len;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue