summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/emap/clif.c7
-rw-r--r--src/emap/clif.h2
2 files changed, 5 insertions, 4 deletions
diff --git a/src/emap/clif.c b/src/emap/clif.c
index ba4a2b7..e2a0337 100644
--- a/src/emap/clif.c
+++ b/src/emap/clif.c
@@ -1307,18 +1307,19 @@ void eclif_sendbgemblem_single(int *fdPtr, struct map_session_data *sd)
}
void eclif_disp_message(struct block_list* src,
- const char* mes, size_t *lenPtr,
+ const char* mes,
enum send_target *targetPtr)
{
unsigned char buf[256];
- int len = *lenPtr;
+ nullpo_retv(mes);
+
+ int len = strlen(mes);
if (len == 0 || !isInit)
return;
nullpo_retv(src);
- nullpo_retv(mes);
if (len > sizeof(buf) - 5)
{
diff --git a/src/emap/clif.h b/src/emap/clif.h
index 31e6839..2b95249 100644
--- a/src/emap/clif.h
+++ b/src/emap/clif.h
@@ -45,7 +45,7 @@ void eclif_dropflooritem(struct flooritem_data* fitem);
void eclif_sendbgemblem_area(struct map_session_data *sd);
void eclif_sendbgemblem_single(int *fdPtr, struct map_session_data *sd);
void eclif_disp_message(struct block_list* src,
- const char* mes, size_t *lenPtr,
+ const char* mes,
enum send_target *targetPtr);
void eclif_set_unit_idle_old(struct block_list* bl,