|
@@ -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 //
|
|
// Lordalfa - Paperboy - To whisper NPC commands //
|
|
//-------------------------------------------------------//
|
|
//-------------------------------------------------------//
|
|
if ((strncasecmp((const char*)RFIFOP(fd,4),"NPC:",4) == 0) && (strlen((const char*)RFIFOP(fd,4)) >4)) {
|
|
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)))
|
|
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;
|
|
whisper_tmp[0]=0;
|
|
|
|
|
|
sprintf(whisper_tmp, "%s", (const char*)RFIFOP(fd,28));
|
|
sprintf(whisper_tmp, "%s", (const char*)RFIFOP(fd,28));
|