1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

heimdal: fixed -Werror=format error in com_err

This needs to be merged upstream

Autobuild-User(master): Andrew Tridgell <tridge@samba.org>
Autobuild-Date(master): Thu Aug  2 08:59:24 CEST 2012 on sn-devel-104
This commit is contained in:
Andrew Tridgell 2012-08-02 14:59:37 +10:00
parent b93e6ef5e7
commit 02dcf05914

View File

@ -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];
#ifdef LIBINTL
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
strlcpy(str, dgettext(domain, msg), len);
return str;