]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:utils: Fix format error
authorAndreas Schneider <asn@samba.org>
Fri, 1 Oct 2021 08:46:09 +0000 (10:46 +0200)
committerUri Simchoni <uri@samba.org>
Mon, 4 Oct 2021 10:43:37 +0000 (10:43 +0000)
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 <asn@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
source3/utils/regedit_hexedit.c

index 383736ae2bcd907fc611131a0b4aa808a7962da4..413e563f653f1abb197999b125d7173ef82471bb 100644 (file)
@@ -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;