From 047ce86986dec6d819c8a92bfceb6a629d6816d6 Mon Sep 17 00:00:00 2001 From: Tsarevich Dmitry Date: Sun, 23 Feb 2020 21:52:42 +0300 Subject: [PATCH] [fmt] Fix sprintf fmt for unsigned int --- src/localization.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/localization.c b/src/localization.c index 1d54d958..b1c91dc3 100644 --- a/src/localization.c +++ b/src/localization.c @@ -378,7 +378,7 @@ char* lmprintf(uint32_t msg_id, ...) } if (format == NULL) { - safe_sprintf(buf[buf_id], LOC_MESSAGE_SIZE-1, "MSG_%03d UNTRANSLATED", msg_id - MSG_000); + safe_sprintf(buf[buf_id], LOC_MESSAGE_SIZE-1, "MSG_%03u UNTRANSLATED", msg_id - MSG_000); } else { if (right_to_left_mode && (msg_table != default_msg_table)) { if (is_rtf) {