1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-22 05:09:13 +00:00

Get rid of most _alloca use and remove ALLOCA().

This commit is contained in:
Darryl Pogue
2011-10-23 23:01:19 -07:00
committed by Adam Johnson
parent 8a3f0cfd5b
commit 6cdcf6a95e
15 changed files with 109 additions and 103 deletions

View File

@ -99,9 +99,11 @@ static void AddValueString (
const wchar_t src[]
) {
unsigned chars = StrLen(src) + 1;
wchar_t * dst = ALLOCA(wchar_t, chars);
wchar_t * dst = (wchar_t*)malloc(sizeof(wchar_t) * chars);
StrTokenize(&src, dst, chars, L" \t\r\n\"");
value->fArgs.Add(StrDup(dst));
free(dst);
}