use assign

This commit is contained in:
tildearrow 2022-12-23 01:15:46 -05:00
parent 45f9aa7261
commit e960b6be30

View file

@ -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