heimdal: fixed -Werror=format error in com_err
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:

committed by
Love Hornquist Astrand

parent
b8a53329fc
commit
d9d8e94d66
@@ -65,7 +65,7 @@ com_right_r(struct et_list *list, long code, char *str, size_t len)
|
|||||||
const char *msg = p->table->msgs[code - p->table->base];
|
const char *msg = p->table->msgs[code - p->table->base];
|
||||||
#ifdef LIBINTL
|
#ifdef LIBINTL
|
||||||
char domain[12 + 20];
|
char domain[12 + 20];
|
||||||
snprintf(domain, sizeof(domain), "heim_com_err%d", p->table->base);
|
snprintf(domain, sizeof(domain), "heim_com_err%ld", p->table->base);
|
||||||
#endif
|
#endif
|
||||||
strlcpy(str, dgettext(domain, msg), len);
|
strlcpy(str, dgettext(domain, msg), len);
|
||||||
return str;
|
return str;
|
||||||
|
Reference in New Issue
Block a user