diff options
author | mc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-27 17:24:18 +0000 |
---|---|---|
committer | mc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-27 17:24:18 +0000 |
commit | 9ea02a170cc28c6369ab7eeae09c140fbb3d5954 (patch) | |
tree | 7648d77247442e37126da7f520b2c84e8ea4c8d8 /src/common/showmsg.c | |
parent | ff5e9eebcc2b116f37bb6f909f3f60f902bb462d (diff) | |
download | hercules-9ea02a170cc28c6369ab7eeae09c140fbb3d5954.tar.gz hercules-9ea02a170cc28c6369ab7eeae09c140fbb3d5954.tar.bz2 hercules-9ea02a170cc28c6369ab7eeae09c140fbb3d5954.tar.xz hercules-9ea02a170cc28c6369ab7eeae09c140fbb3d5954.zip |
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@381 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/showmsg.c')
-rw-r--r-- | src/common/showmsg.c | 8 |
1 files changed, 5 insertions, 3 deletions
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 <string.h> #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); |