From: Denis Vlasenko Date: Mon, 30 Jul 2007 10:58:09 +0000 (-0000) Subject: dd: use unsigned printf specifier for # of blocks X-Git-Tag: 1_7_0~86 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=980864de081536ac8b5bdb053abea622da72ad75;p=oweals%2Fbusybox.git dd: use unsigned printf specifier for # of blocks --- diff --git a/coreutils/dd.c b/coreutils/dd.c index b7979d62f..3b4b1d785 100644 --- a/coreutils/dd.c +++ b/coreutils/dd.c @@ -38,8 +38,9 @@ struct globals { static void dd_output_status(int ATTRIBUTE_UNUSED cur_signal) { - fprintf(stderr, "%"OFF_FMT"d+%"OFF_FMT"d records in\n" - "%"OFF_FMT"d+%"OFF_FMT"d records out\n", + /* Deliberately using %u, not %d */ + fprintf(stderr, "%"OFF_FMT"u+%"OFF_FMT"u records in\n" + "%"OFF_FMT"u+%"OFF_FMT"u records out\n", G.in_full, G.in_part, G.out_full, G.out_part); }