aboutsummaryrefslogtreecommitdiff
path: root/src/libui_sdl
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2017-09-21 21:44:39 +0200
committerStapleButter <thetotalworm@gmail.com>2017-09-21 21:44:39 +0200
commit332282c8094d32d17282fd68da01ed9972177e06 (patch)
treea6c6577c44b4c2bb2123d5e6ebd8b05edc0c6377 /src/libui_sdl
parent8e41ed751e8a1937b2e50942b44bfaeba92976cd (diff)
oh also, fuck that shit
Diffstat (limited to 'src/libui_sdl')
-rw-r--r--src/libui_sdl/main.cpp2
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?