forked from mirror/OpenTTD
(svn r328) -Fix: remove some unlogical alloca()s (Tron)
This commit is contained in:
2
win32.c
2
win32.c
@@ -1072,7 +1072,7 @@ static void GetFileInfo(DebugFileInfo *dfi, const char *filename)
|
||||
|
||||
static char *PrintModuleInfo(char *output, HMODULE mod)
|
||||
{
|
||||
char *buffer = alloca(MAX_PATH);
|
||||
char buffer[MAX_PATH];
|
||||
DebugFileInfo dfi;
|
||||
GetModuleFileName(mod, buffer, MAX_PATH);
|
||||
GetFileInfo(&dfi, buffer);
|
||||
|
Reference in New Issue
Block a user