summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/heimdal/lib/com_err/error.c2
1 files changed, 1 insertions, 1 deletions
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;