From afe144d554f132418e60f8f0a9c8404199c7a9a6 Mon Sep 17 00:00:00 2001 From: Robin Malley Date: Wed, 23 Nov 2022 22:12:04 +0000 Subject: [PATCH] Correct wrong formatting string for coroutines. --- src/libkore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libkore.c b/src/libkore.c index 6430d4e..d23b01d 100644 --- a/src/libkore.c +++ b/src/libkore.c @@ -122,7 +122,7 @@ int coroutine_iter_next(struct co_obj *obj){ const char *data = luaL_checklstring(L,-1,&size); struct netbuf *nb; struct kore_buf *kb = kore_buf_alloc(4096); - kore_buf_appendf(kb,"%x\r\n",size); + kore_buf_appendf(kb,"%lu\r\n",size); kore_buf_append(kb,data,size); kore_buf_appendf(kb,"\r\n"); //size_t ssize;