diff options
author | shennetsind <ind@henn.et> | 2013-05-31 01:01:39 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-05-31 01:01:39 -0300 |
commit | 7a57a10f970e33a31e1acd9051b9b0725b8220a0 (patch) | |
tree | 847030c1c9c5fcba5a18a22826c4661f94714011 /src/map | |
parent | 11a90e148ed142c9bc39fc9e71ccc690b03fdb8f (diff) | |
download | hercules-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')
-rw-r--r-- | src/map/clif.c | 3 |
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); |