summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 0759f5d..011d1b4 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -59,7 +59,7 @@ void buf_append(struct buffer *buf, const char *str) {
void buf_printf(struct buffer *buf, char *fmt, ...) {
va_list ap;
- size_t len;
+ ssize_t len;
va_start(ap, fmt);
len = vsnprintf(buf->data, buf->size, fmt, ap);