From 6cdf5ec943843173b408ac71bfc12a0251fdd362 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 1 Oct 2021 10:46:09 +0200 Subject: [PATCH] s3:utils: Fix format error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit regedit_hexedit.c:166:39: error: format ‘%X’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} 166 | wprintw(buf->win, "%08X ", off); | ~~~^ ~~~ | | | | | size_t {aka long unsigned int} | unsigned int | %08lX Signed-off-by: Andreas Schneider Reviewed-by: Uri Simchoni (cherry picked from commit cc3081cebfb65181cd291702cb6a2e727dc999b2) BUG: https://bugzilla.samba.org/show_bug.cgi?id=15091 Reviewed-by: Stefan Metzmacher --- source3/utils/regedit_hexedit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/utils/regedit_hexedit.c b/source3/utils/regedit_hexedit.c index 383736ae2bcd..413e563f653f 100644 --- a/source3/utils/regedit_hexedit.c +++ b/source3/utils/regedit_hexedit.c @@ -163,7 +163,7 @@ void hexedit_refresh(struct hexedit *buf) size_t i, endline; wmove(buf->win, lineno, 0); - wprintw(buf->win, "%08X ", off); + wprintw(buf->win, "%08zX ", off); endline = BYTES_PER_LINE; -- 2.34.1