mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +00:00
Use new allocation for expanding \#
This commit is contained in:
@@ -63,7 +63,7 @@ char const *macro_GetAllArgs()
|
||||
for (uint32_t i = macroArgs->shift; i < nbArgs; i++)
|
||||
len += macroArgs->args[i].length() + 1; // 1 for comma
|
||||
|
||||
char *str = (char *)malloc(len + 1); // 1 for '\0'
|
||||
char *str = new char[len + 1]; // 1 for '\0'
|
||||
char *ptr = str;
|
||||
|
||||
if (!str)
|
||||
|
||||
Reference in New Issue
Block a user