From 33cac1003af33bf80fb37bc03fd65829bf864407 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 18 Nov 2013 10:58:41 +0100 Subject: [PATCH] mkfs.minix: fix fscanf() format string [coverity scan] Signed-off-by: Karel Zak --- disk-utils/mkfs.minix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disk-utils/mkfs.minix.c b/disk-utils/mkfs.minix.c index dd2cf43caa..9fdfc63794 100644 --- a/disk-utils/mkfs.minix.c +++ b/disk-utils/mkfs.minix.c @@ -628,7 +628,7 @@ static void get_list_blocks(char *filename) { device_name); while (!feof(listfile)) { - if (fscanf(listfile,"%ld\n", &blockno) != 1) { + if (fscanf(listfile,"%lu\n", &blockno) != 1) { printf(_("badblock number input error on line %d\n"), badblocks + 1); errx(MKFS_EX_ERROR, _("%s: cannot read badblocks file"), device_name); -- 2.47.3