From 02dcf059149174beab3528d201fd36e313ba5ee5 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 2 Aug 2012 14:59:37 +1000 Subject: heimdal: fixed -Werror=format error in com_err This needs to be merged upstream Autobuild-User(master): Andrew Tridgell Autobuild-Date(master): Thu Aug 2 08:59:24 CEST 2012 on sn-devel-104 --- source4/heimdal/lib/com_err/error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/heimdal/lib/com_err') diff --git a/source4/heimdal/lib/com_err/error.c b/source4/heimdal/lib/com_err/error.c index 6864e870a4..bf046da225 100644 --- a/source4/heimdal/lib/com_err/error.c +++ b/source4/heimdal/lib/com_err/error.c @@ -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; -- cgit