From 38f9ff65bbabe400fd0f13bb9409576b3d6cbace Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 10 Jan 2015 15:21:00 +0300 Subject: Fix compilation with visual studio. --- src/map/send.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/map/send.c') 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) -- cgit v1.2.3-60-g2f50