From 37bdb9467bc3845f9b4ae690d3f6e0108c94322b Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Tue, 25 Jan 2022 18:09:08 +0100 Subject: [PATCH] [gettext] cast --- src/intl/gettext/dcigettext.c | 2 +- src/intl/gettext/localealias.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/intl/gettext/dcigettext.c b/src/intl/gettext/dcigettext.c index a8114e3e7..4a20fd5c0 100644 --- a/src/intl/gettext/dcigettext.c +++ b/src/intl/gettext/dcigettext.c @@ -416,7 +416,7 @@ dcigettext__(const char *domainname, const char *msgid1, const char *msgid2, + domainname_len + 5); ADD_BLOCK(block_list, xdomainname); - stpcpy(mempcpy(stpcpy(stpcpy(xdomainname, categoryname), "/"), + stpcpy((char *)mempcpy(stpcpy(stpcpy(xdomainname, categoryname), "/"), domainname, domainname_len), ".mo"); /* Creating working area. */ diff --git a/src/intl/gettext/localealias.c b/src/intl/gettext/localealias.c index d86deb71e..476ddd7aa 100644 --- a/src/intl/gettext/localealias.c +++ b/src/intl/gettext/localealias.c @@ -236,12 +236,12 @@ read_alias_file(const char *fname, int fname_len) } map[nmap].alias = - memcpy(&string_space[string_space_act], + (const char *)memcpy(&string_space[string_space_act], alias, alias_len); string_space_act += alias_len; map[nmap].value = - memcpy(&string_space[string_space_act], + (const char *)memcpy(&string_space[string_space_act], value, value_len); string_space_act += value_len;