From 769dc4a52744f3b5a66bb92f212cf3bfb0aace1c Mon Sep 17 00:00:00 2001 From: superp00t Date: Tue, 15 Aug 2023 03:16:59 -0400 Subject: [PATCH] fix(command): make call to ProcessString() valid by first making const pointer to buffer --- storm/Command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storm/Command.cpp b/storm/Command.cpp index c81f5e2..563f97f 100644 --- a/storm/Command.cpp +++ b/storm/Command.cpp @@ -369,7 +369,7 @@ static int32_t ProcessFile(const char* filename, PROCESSING* processing, CMDDEF* buffer[bytesread] = '\0'; - auto curr = buffer; + const char* curr = buffer; auto status = ProcessString(&curr, processing, nextarg, extracallback, errorcallback); SMemFree(buffer, __FILE__, __LINE__, 0);