From 1909031528c84e47e30d1493097d3a856e3735a9 Mon Sep 17 00:00:00 2001 From: Charles Ede Date: Mon, 9 Feb 2026 12:28:42 +0000 Subject: [PATCH] fix malloc --- src/Authentication.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Authentication.cc b/src/Authentication.cc index c340821..3b04554 100644 --- a/src/Authentication.cc +++ b/src/Authentication.cc @@ -77,7 +77,7 @@ char *TokenSupplier(void *ctx) { future.wait(); - char *token = (char *)malloc(dataPtr->token.size()); + char *token = (char *)malloc(dataPtr->token.size() + 1); strcpy(token, dataPtr->token.c_str()); return token; }