summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorgreenboxal2 <greenboxal2@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-24 16:27:04 +0000
committergreenboxal2 <greenboxal2@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-24 16:27:04 +0000
commita5244368bb4c8887d900228658f4fa680222d0da (patch)
tree3b29ef1eb50674abb4005dda2b362675da5d43eb /src/map/npc.c
parent173905288bdb123e7c2249f9d05714acf2f1541a (diff)
downloadhercules-a5244368bb4c8887d900228658f4fa680222d0da.tar.gz
hercules-a5244368bb4c8887d900228658f4fa680222d0da.tar.bz2
hercules-a5244368bb4c8887d900228658f4fa680222d0da.tar.xz
hercules-a5244368bb4c8887d900228658f4fa680222d0da.zip
Fixed memory leak on MvP tomb system, killer name now uses static buffer. (bugreport:5615)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15954 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index d0defdf88..0309d6556 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -1097,7 +1097,7 @@ void run_tomb(struct map_session_data* sd, struct npc_data* nd)
clif_scriptmes(sd, nd->bl.id, msg_txt(660));
- snprintf(buffer, sizeof(buffer), msg_txt(661), nd->u.tomb.killer_name ? nd->u.tomb.killer_name : "Unknown");
+ snprintf(buffer, sizeof(buffer), msg_txt(661), nd->u.tomb.killer_name[0] ? nd->u.tomb.killer_name : "Unknown");
clif_scriptmes(sd, nd->bl.id, buffer);
clif_scriptclose(sd, nd->bl.id);