Use %zx specifier in patty_print_hexdump()

This commit is contained in:
XANTRONIX Development 2020-10-22 23:04:37 +01:00 committed by XANTRONIX Industrial
parent b05202e9bf
commit c359682928

View file

@ -214,7 +214,7 @@ int patty_print_hexdump(FILE *fh, void *data, size_t len) {
for (i=0; i<len; i+=16) {
size_t x;
if (fprintf(fh, "%08lx:", i) < 0) {
if (fprintf(fh, "%08zx:", i) < 0) {
goto error_io;
}