mkfs.minix: fix fscanf() format string [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
185b1bc7f4
commit
33cac1003a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue