statically allocate storage for versionstring
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user