summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-05-31 01:01:39 -0300
committershennetsind <ind@henn.et>2013-05-31 01:01:39 -0300
commit7a57a10f970e33a31e1acd9051b9b0725b8220a0 (patch)
tree847030c1c9c5fcba5a18a22826c4661f94714011 /src/map/clif.c
parent11a90e148ed142c9bc39fc9e71ccc690b03fdb8f (diff)
downloadhercules-7a57a10f970e33a31e1acd9051b9b0725b8220a0.tar.gz
hercules-7a57a10f970e33a31e1acd9051b9b0725b8220a0.tar.bz2
hercules-7a57a10f970e33a31e1acd9051b9b0725b8220a0.tar.xz
hercules-7a57a10f970e33a31e1acd9051b9b0725b8220a0.zip
Fixed Bug #7298
Special Thanks to Haru~! http://hercules.ws/board/tracker/issue-7298-uninitialized-variable-in-read-channels-config/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index b73c7ac31..eb13a9515 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -2746,6 +2746,9 @@ void read_channels_config(void) {
} else {
unsigned char d = 0, dlen = strlen(irc_server);
char server[40];
+
+ memset(server, '\0', sizeof(server));
+
for(d = 0; d < dlen; d++) {
if(irc_server[d] == ':') {
memcpy(server, irc_server, d);