From d9d8e94d66502c218cc230c55bdecbc116146cd5 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 2 Aug 2012 14:59:37 +1000 Subject: [PATCH] heimdal: fixed -Werror=format error in com_err Signed-off-by: Love Hornquist Astrand --- lib/com_err/error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/com_err/error.c b/lib/com_err/error.c index 6864e870a..bf046da22 100644 --- a/lib/com_err/error.c +++ b/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;