Fix small snprintf bug in version.c
This commit is contained in:
parent
11f10a62b1
commit
7d9947816c
|
@ -59,9 +59,9 @@ const char* get_version_local(void) {
|
|||
// I want to redo this whole file when I remove sm64ex-coop compatibility
|
||||
const char* get_version_dx(void) {
|
||||
#if defined(VERSION_US)
|
||||
snprintf(sDxVersionString, MAX_LOCAL_VERSION_LENGTH, "v%s", SM64COOPDX_VERSION);
|
||||
snprintf(sDxVersionString, MAX_VERSION_LENGTH, "v%s", SM64COOPDX_VERSION);
|
||||
#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
|
||||
|
||||
return sDxVersionString;
|
||||
|
|
Loading…
Reference in New Issue