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;