From 3857101b07173690256e1ee6df7b577e5ffc8def Mon Sep 17 00:00:00 2001 From: amber Date: Sat, 27 Nov 2004 19:03:43 +0000 Subject: [PATCH] Fix some compile time errors git-svn-id: https://svn.code.sf.net/p/rathena/svn/athena@383 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog.txt | 1 + src/common/showmsg.c | 2 +- src/txt-converter/char/GNUmakefile | 2 +- src/txt-converter/login/GNUmakefile | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Changelog.txt b/Changelog.txt index 59d433abcc..545234850c 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -1,5 +1,6 @@ Date Added 11/27 + * Fixed some compile time errors associated with showmsg [MouseJstr] * Added get_svn_revision() in core.c [MC Cameri] -Only if you have the file .svn\entries, it will show the revision # at runtime. diff --git a/src/common/showmsg.c b/src/common/showmsg.c index 56c41b89dd..b65181f3a8 100644 --- a/src/common/showmsg.c +++ b/src/common/showmsg.c @@ -3,7 +3,7 @@ #include #include "showmsg.h" -char tmp_output[1024] = "\0"; +char tmp_output[1024] = {"\0"}; int _ShowMessage(const char *string, enum msg_type flag){ // by MC Cameri /* diff --git a/src/txt-converter/char/GNUmakefile b/src/txt-converter/char/GNUmakefile index 56723ca5aa..5d4c61535a 100644 --- a/src/txt-converter/char/GNUmakefile +++ b/src/txt-converter/char/GNUmakefile @@ -1,7 +1,7 @@ all: char-converter sql: char-converter -COMMON_OBJ = ../../common/core.o ../../common/socket.o ../../common/timer.o ../../common/db.o ../../common/malloc.o +COMMON_OBJ = ../../common/core.o ../../common/socket.o ../../common/timer.o ../../common/db.o ../../common/malloc.o ../../common/showmsg.o char-converter: char-converter.o strlib.o $(COMMON_OBJ) $(CC) -o ../../../$@ $^ $(LIB_S) diff --git a/src/txt-converter/login/GNUmakefile b/src/txt-converter/login/GNUmakefile index 9f34e143a0..2d36f709f1 100644 --- a/src/txt-converter/login/GNUmakefile +++ b/src/txt-converter/login/GNUmakefile @@ -1,7 +1,7 @@ all: login-converter sql: login-converter -COMMON_OBJ = ../../common/core.o ../../common/socket.o ../../common/timer.o ../../common/db.o ../../common/malloc.o +COMMON_OBJ = ../../common/core.o ../../common/socket.o ../../common/timer.o ../../common/db.o ../../common/malloc.o ../../common/showmsg.o COMMON_H = ../../common/core.h ../../common/socket.h ../../common/timer.h ../../common/mmo.h ../../common/version.h ../../common/db.h ../../common/malloc.h login-converter: login-converter.o ../../login_sql/md5calc.o ../../login_sql/strlib.o $(COMMON_OBJ)