diff options
Diffstat (limited to 'buffer.c')
| -rw-r--r-- | buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -172,7 +172,7 @@ const char *buffer_content(Buffer *buf) { } const char *buffer_content0(Buffer *buf) { - if (buf->len == 0 || (buf->data[buf->len-1] != '\0' && !buffer_append(buf, "\0", 1))) + if (buf->len == 0 || !buffer_terminate(buf)) return ""; return buf->data; } |
