From 9ea02a170cc28c6369ab7eeae09c140fbb3d5954 Mon Sep 17 00:00:00 2001 From: mc_cameri Date: Sat, 27 Nov 2004 17:24:18 +0000 Subject: git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@381 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/showmsg.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/common/showmsg.c') diff --git a/src/common/showmsg.c b/src/common/showmsg.c index 28bf58edc..56c41b89d 100644 --- a/src/common/showmsg.c +++ b/src/common/showmsg.c @@ -3,7 +3,9 @@ #include #include "showmsg.h" -int _ShowMessage(const char *string, int flag){ // by MC Cameri +char tmp_output[1024] = "\0"; + +int _ShowMessage(const char *string, enum msg_type flag){ // by MC Cameri /* _ShowMessage MUST be used instead of printf as of 10/24/2004. Return: 0 = Successful, 1 = Failed. @@ -12,7 +14,7 @@ int _ShowMessage(const char *string, int flag){ // by MC Cameri char prefix[40]; char *output; if (strlen(string) <= 0) { - ShowMessage("Empty string passed to ShowMessage().\n",MSG_ERROR); + ShowError("Empty string passed to ShowMessage().\n"); return 1; } switch (flag) { @@ -40,7 +42,7 @@ int _ShowMessage(const char *string, int flag){ // by MC Cameri strcpy(prefix,"\033[1;31m[Fatal Error]\033[0;0m: "); break; default: - ShowMessage("In function ShowMessage() -> Invalid flag passed.\n",MSG_ERROR); + ShowError("In function _ShowMessage() -> Invalid flag passed.\n"); return 1; } output = (char*)malloc(sizeof(char)*(strlen(prefix)+strlen(string))+1); -- cgit v1.2.3-70-g09d2