From 9ffd9cd568c5d908fbbec46256fe235021fd87a4 Mon Sep 17 00:00:00 2001 From: Haru Date: Fri, 8 Jan 2016 11:17:40 +0100 Subject: Removed unnecessary explicit casts of the value of WBUFP - WBUFP now returns a pointer to void, which automatically casts to any non-const or const pointer. Signed-off-by: Haru --- src/map/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/script.c') diff --git a/src/map/script.c b/src/map/script.c index 289ea36e2..9388e8f5f 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -5003,7 +5003,7 @@ void script_load_translation(const char *file, uint8 lang_id, uint32 *total) { RECREATE(st->buf, char, st->len + inner_len); WBUFB(st->buf, st->len) = lang_id; - safestrncpy((char*)WBUFP(st->buf, st->len + 1), msgstr.ptr, msgstr_len + 1); + safestrncpy(WBUFP(st->buf, st->len + 1), msgstr.ptr, msgstr_len + 1); st->translations++; st->len += inner_len; -- cgit v1.2.3-60-g2f50