From e960b6be30b07729c09e9b7f7503c358ccd50a02 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Fri, 23 Dec 2022 01:15:46 -0500 Subject: [PATCH] use assign --- src/log.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/log.cpp b/src/log.cpp index 7a86644b..46cd18cd 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -96,7 +96,7 @@ int writeLog(int level, const char* msg, fmt::printf_args args) { printf("logPosition: %d\n",pos); - logEntries[pos].text=fmt::vsprintf(msg,args); + logEntries[pos].text.assign(fmt::vsprintf(msg,args)); // why do I have to pass a pointer // can't I just pass the time_t directly?! #ifdef _WIN32