summaryrefslogtreecommitdiff
path: root/src/emap
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-27 18:35:21 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-27 18:35:21 +0300
commit24a5f119b798bce791775943da06c1feaff16027 (patch)
tree61f79e54b5cf70399e8619a825244124d7cb94fd /src/emap
parent2fe03b9dd2747c18afd89abd7440c7cb49b7efe5 (diff)
downloadplugin-24a5f119b798bce791775943da06c1feaff16027.tar.gz
plugin-24a5f119b798bce791775943da06c1feaff16027.tar.bz2
plugin-24a5f119b798bce791775943da06c1feaff16027.tar.xz
plugin-24a5f119b798bce791775943da06c1feaff16027.zip
Update plugin for support new hercules.
Fixed function clif_disp_message.
Diffstat (limited to 'src/emap')
-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,