summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-03 22:28:15 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-03 22:28:15 +0000
commit4dfeedcc9d112d1e86b2dac932ee1b6700223427 (patch)
tree63bf60ffae75aa0c1543895472b89017f088c591 /src/map
parente98da76049ed45fce2490b48e9d6418bd1ec1223 (diff)
downloadhercules-4dfeedcc9d112d1e86b2dac932ee1b6700223427.tar.gz
hercules-4dfeedcc9d112d1e86b2dac932ee1b6700223427.tar.bz2
hercules-4dfeedcc9d112d1e86b2dac932ee1b6700223427.tar.xz
hercules-4dfeedcc9d112d1e86b2dac932ee1b6700223427.zip
- Fixed crash on the NPC whisper system when the message's size was 1.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5452 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/clif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 630d513d8..5f2a53bf1 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -9456,10 +9456,10 @@ void clif_parse_Wis(int fd, struct map_session_data *sd) { // S 0096 <len>.w <ni
// Lordalfa - Paperboy - To whisper NPC commands //
//-------------------------------------------------------//
if ((strncasecmp((const char*)RFIFOP(fd,4),"NPC:",4) == 0) && (strlen((const char*)RFIFOP(fd,4)) >4)) {
- whisper_tmp = (char*) RFIFOP(fd,4) + 4;
+ whisper_tmp = (char*) RFIFOP(fd,4) + 4;
if ((npc = npc_name2id(whisper_tmp)))
{
- whisper_tmp=(char *)aCallocA(strlen((char *)(RFIFOP(fd,28))+1),sizeof(char));
+ whisper_tmp=(char *)aCallocA(strlen((char *)(RFIFOP(fd,28)))+1,sizeof(char));
whisper_tmp[0]=0;
sprintf(whisper_tmp, "%s", (const char*)RFIFOP(fd,28));