From 3c36d76be739b6975fac4e6adee3b91002056db1 Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Sun, 9 Jul 2023 15:39:51 -0300 Subject: server.c: a basic multithreaded server to handle connections Signed-off-by: Anna (navi) Figueiredo Gomes --- src/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/buffer.c') 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); -- cgit v1.2.3