From: Andrew Tridgell Date: Thu, 2 Aug 2012 04:59:37 +0000 (+1000) Subject: heimdal: fixed -Werror=format error in com_err X-Git-Tag: ldb-1.1.10~157 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=02dcf059149174beab3528d201fd36e313ba5ee5;p=thirdparty%2Fsamba.git 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 --- diff --git a/source4/heimdal/lib/com_err/error.c b/source4/heimdal/lib/com_err/error.c index 6864e870a41..bf046da2255 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;