diff options
-rw-r--r-- | src/common/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/utils.c b/src/common/utils.c index 8b9e33fa0..08ac8db15 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -45,14 +45,14 @@ void WriteDump(FILE* fp, const void* buffer, size_t length) if( (i%16) == 15 ) { - fprintf(fp, "%03X %s %s\n", i/16, hex, ascii); + fprintf(fp, "%03X %s %s\n", (unsigned int)(i/16), hex, ascii); } } if( (i%16) != 0 ) { ascii[i%16] = 0; - fprintf(fp, "%03X %-48s %-16s\n", i/16, hex, ascii); + fprintf(fp, "%03X %-48s %-16s\n", (unsigned int)(i/16), hex, ascii); } } |