From ee5f75c74499340e289d0a12497a8e7ed5e8628c Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Fri, 9 Sep 2011 09:30:53 -0500 Subject: [PATCH] statically allocate storage for versionstring --- src/wiiuse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wiiuse.c b/src/wiiuse.c index 1610135..257ab0b 100644 --- a/src/wiiuse.c +++ b/src/wiiuse.c @@ -43,12 +43,13 @@ #include // for memcpy, memset static int g_banner = 0; +static const char g_wiiuse_version_string[] = WIIUSE_VERSION; /** * @brief Returns the version of the library. */ const char* wiiuse_version() { - return WIIUSE_VERSION; + return g_wiiuse_version_string; } /**