From 1e0cc275d80763c330962a22d740b14cc400bf71 Mon Sep 17 00:00:00 2001 From: "fix94.1" Date: Fri, 4 May 2012 05:19:52 +0000 Subject: [PATCH] -changed small thing about the help file reading -WOW r300 already --- source/menu/menu_about.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/menu/menu_about.cpp b/source/menu/menu_about.cpp index 70ab301d..faf1b459 100644 --- a/source/menu/menu_about.cpp +++ b/source/menu/menu_about.cpp @@ -126,7 +126,7 @@ void CMenu::_textAbout(void) m_btnMgr.setText(m_aboutBtnSystem, _t("sys4", L"Update")); m_btnMgr.setText(m_aboutLblTitle, wfmt(_fmt("appname", L"%s (%s-r%s)"), APP_NAME, APP_VERSION, SVN_REV), false); - char * help =(char *)MEM2_alloc(4096); + char *help = (char*)calloc(4096, sizeof(char)); FILE * f = fopen(sfmt("%s/%s.txt", m_helpDir.c_str(), m_curLanguage.c_str()).c_str(), "r"); if (f == NULL) f = fopen(sfmt("%s/english.txt", m_helpDir.c_str()).c_str(), "r");