mkfs.minix: fix fscanf() format string [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2013-11-18 10:58:41 +01:00
parent 185b1bc7f4
commit 33cac1003a
1 changed files with 1 additions and 1 deletions

View File

@ -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);