Fix small snprintf bug in version.c

This commit is contained in:
Agent X 2024-03-08 19:08:01 -05:00
parent 11f10a62b1
commit 7d9947816c

View file

@ -59,9 +59,9 @@ const char* get_version_local(void) {
// I want to redo this whole file when I remove sm64ex-coop compatibility // I want to redo this whole file when I remove sm64ex-coop compatibility
const char* get_version_dx(void) { const char* get_version_dx(void) {
#if defined(VERSION_US) #if defined(VERSION_US)
snprintf(sDxVersionString, MAX_LOCAL_VERSION_LENGTH, "v%s", SM64COOPDX_VERSION); snprintf(sDxVersionString, MAX_VERSION_LENGTH, "v%s", SM64COOPDX_VERSION);
#else #else
snprintf(sDxVersionString, MAX_LOCAL_VERSION_LENGTH, "v%s %s", VERSION_TEXT, SM64COOPDX_VERSION, VERSION_REGION); snprintf(sDxVersionString, MAX_VERSION_LENGTH, "v%s %s", SM64COOPDX_VERSION, VERSION_REGION);
#endif #endif
return sDxVersionString; return sDxVersionString;