Replace sprintf_s with snprintf

This commit is contained in:
kichikuou
2023-04-15 09:16:14 +09:00
parent f1455c2c8a
commit c3556c5213
7 changed files with 13 additions and 14 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ SDL_RWops* open_resource(const char* name, const char* type) {
// On Android, read from APK assets.
// On other platforms, read from a file under RESOURCE_PATH.
char path[_MAX_PATH];
sprintf_s(path, _MAX_PATH, "%s%s/%s", RESOURCE_PATH, type, name);
snprintf(path, _MAX_PATH, "%s%s/%s", RESOURCE_PATH, type, name);
return SDL_RWFromFile(path, "rb");
#endif
}