diff options
-rw-r--r-- | src/libui_sdl/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libui_sdl/main.cpp b/src/libui_sdl/main.cpp index e426ec9..7ccc8f7 100644 --- a/src/libui_sdl/main.cpp +++ b/src/libui_sdl/main.cpp @@ -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? |