oh also, fuck that shit

This commit is contained in:
StapleButter 2017-09-21 21:44:39 +02:00
parent 8e41ed751e
commit 332282c809
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ void OnOpenFile(uiMenuItem* item, uiWindow* window, void* blarg)
return;
}
strncpy_s(ROMPath, file, 1023);
strncpy(ROMPath, file, 1023);
ROMPath[1023] = '\0';
uiFreeText(file);
// TODO: change libui to store strings in stack-allocated buffers?