statically allocate storage for versionstring

This commit is contained in:
Ryan Pavlik
2011-09-09 09:30:53 -05:00
parent 3e4edb3905
commit ee5f75c744

View File

@@ -43,12 +43,13 @@
#include <string.h> // for memcpy, memset #include <string.h> // for memcpy, memset
static int g_banner = 0; static int g_banner = 0;
static const char g_wiiuse_version_string[] = WIIUSE_VERSION;
/** /**
* @brief Returns the version of the library. * @brief Returns the version of the library.
*/ */
const char* wiiuse_version() { const char* wiiuse_version() {
return WIIUSE_VERSION; return g_wiiuse_version_string;
} }
/** /**