summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-10 15:21:00 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-10 15:21:00 +0300
commit38f9ff65bbabe400fd0f13bb9409576b3d6cbace (patch)
treedd3190f2c3f9876ac31b2a8dad14c9bf1f69c33a
parent55454de66950e2e8f1edb8b9118fb95e2ea1bbce (diff)
downloadevol-hercules-38f9ff65bbabe400fd0f13bb9409576b3d6cbace.tar.gz
evol-hercules-38f9ff65bbabe400fd0f13bb9409576b3d6cbace.tar.bz2
evol-hercules-38f9ff65bbabe400fd0f13bb9409576b3d6cbace.tar.xz
evol-hercules-38f9ff65bbabe400fd0f13bb9409576b3d6cbace.zip
Fix compilation with visual studio.
-rw-r--r--src/map/send.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/send.c b/src/map/send.c
index 06e0cfc..b92065a 100644
--- a/src/map/send.c
+++ b/src/map/send.c
@@ -158,13 +158,15 @@ void send_changemusic_brodcast(const int map, const char *music)
struct block_list bl;
const int sz = strlen (music) + 5;
- char buf[sz];
+ char *buf;
+ CREATE(buf, char, sz);
bl.m = map;
WBUFW (buf, 0) = 0xb05;
WBUFW (buf, 2) = sz;
strcpy ((char *)WBUFP (buf, 4), music);
clif->send (buf, sz, &bl, ALL_SAMEMAP);
+ aFree(buf);
}
void send_changenpc_title (struct map_session_data *sd, const int npcId, const char *name)