diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-10 15:21:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-10 15:21:00 +0300 |
commit | 38f9ff65bbabe400fd0f13bb9409576b3d6cbace (patch) | |
tree | dd3190f2c3f9876ac31b2a8dad14c9bf1f69c33a /src/map/send.c | |
parent | 55454de66950e2e8f1edb8b9118fb95e2ea1bbce (diff) | |
download | plugin-38f9ff65bbabe400fd0f13bb9409576b3d6cbace.tar.gz plugin-38f9ff65bbabe400fd0f13bb9409576b3d6cbace.tar.bz2 plugin-38f9ff65bbabe400fd0f13bb9409576b3d6cbace.tar.xz plugin-38f9ff65bbabe400fd0f13bb9409576b3d6cbace.zip |
Fix compilation with visual studio.
Diffstat (limited to 'src/map/send.c')
-rw-r--r-- | src/map/send.c | 4 |
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) |