summaryrefslogtreecommitdiff
path: root/src/map/npc_chat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/npc_chat.c')
-rw-r--r--src/map/npc_chat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/npc_chat.c b/src/map/npc_chat.c
index 5ec8540ae..c15a26bf0 100644
--- a/src/map/npc_chat.c
+++ b/src/map/npc_chat.c
@@ -387,7 +387,7 @@ int npc_chat_sub(struct block_list *bl, va_list ap)
int offsets[20];
char buf[255];
// perform pattern match
- int r = pcre_exec(e->pcre_, e->pcre_extra_, msg, len, 0,
+ int r = pcre_exec(e->pcre_, e->pcre_extra_, (char *) msg, len, 0,
0, offsets, sizeof(offsets) / sizeof(offsets[0]));
if (r >= 0) {
// save out the matched strings