diff options
author | amber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-03-30 22:14:36 +0000 |
---|---|---|
committer | amber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-03-30 22:14:36 +0000 |
commit | 4d81f68ece4dee6282024fe7189d8402a05428db (patch) | |
tree | d04b30fe51fc769d70fab7e3ede00fe499fd923f /src/char/inter.c | |
parent | 3c9107ed87b2153f9ca2ed8896979f076be469e3 (diff) | |
download | hercules-4d81f68ece4dee6282024fe7189d8402a05428db.tar.gz hercules-4d81f68ece4dee6282024fe7189d8402a05428db.tar.bz2 hercules-4d81f68ece4dee6282024fe7189d8402a05428db.tar.xz hercules-4d81f68ece4dee6282024fe7189d8402a05428db.zip |
eAthena VC7 solution and support added for native builds [MouseJstr]
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1347 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char/inter.c')
-rw-r--r-- | src/char/inter.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/char/inter.c b/src/char/inter.c index a6893aecc..0dca38559 100644 --- a/src/char/inter.c +++ b/src/char/inter.c @@ -296,7 +296,7 @@ int inter_mapif_init(int fd) { // GMメッセージ送信 int mapif_GMmessage(unsigned char *mes, int len, int sfd) { - unsigned char buf[len]; + unsigned char buf[2048]; WBUFW(buf,0) = 0x3800; WBUFW(buf,2) = len; @@ -309,7 +309,7 @@ int mapif_GMmessage(unsigned char *mes, int len, int sfd) { // Wisp/page transmission to all map-server int mapif_wis_message(struct WisData *wd) { - unsigned char buf[56 + wd->len]; + unsigned char buf[2048]; WBUFW(buf, 0) = 0x3801; WBUFW(buf, 2) = 56 + wd->len; @@ -337,7 +337,7 @@ int mapif_wis_end(struct WisData *wd, int flag) { // アカウント変数送信 int mapif_account_reg(int fd, unsigned char *src) { - unsigned char buf[WBUFW(src,2)]; + unsigned char buf[2048]; memcpy(WBUFP(buf,0),src,WBUFW(src,2)); WBUFW(buf, 0) = 0x3804; @@ -489,7 +489,7 @@ int mapif_parse_WisReply(int fd) { // Received wisp message from map-server for ALL gm (just copy the message and resends it to ALL map-servers) int mapif_parse_WisToGM(int fd) { - unsigned char buf[RFIFOW(fd,2)]; // 0x3003/0x3803 <packet_len>.w <wispname>.24B <min_gm_level>.w <message>.?B + unsigned char buf[2048]; // 0x3003/0x3803 <packet_len>.w <wispname>.24B <min_gm_level>.w <message>.?B memcpy(WBUFP(buf,0), RFIFOP(fd,0), RFIFOW(fd,2)); WBUFW(buf, 0) = 0x3803; |