From a187ac81f04f5bf27d0256ccf23944d3401585ff Mon Sep 17 00:00:00 2001 From: Brett Gordon Date: Thu, 26 Oct 2017 13:33:27 -0400 Subject: [PATCH] fsck: fix another wrap bug, and continuing is not an error. --- Applications/util/fsck.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Applications/util/fsck.c b/Applications/util/fsck.c index 1461a9f8..602e8e8d 100644 --- a/Applications/util/fsck.c +++ b/Applications/util/fsck.c @@ -243,7 +243,7 @@ int main(int argc, char **argv) } printf("Device %d has fsize = %d and isize = %d. Continue? ", dev, swizzle16(superblock.s_fsize), swizzle16(superblock.s_isize)); - if (!yes()) + if (!yes_noerror()) exit(error | 32); bitmap = calloc((swizzle16(superblock.s_fsize) + 7UL) / 8, sizeof(char)); @@ -251,7 +251,7 @@ int main(int argc, char **argv) printf("Memory pool %d bytes\n", 16 * swizzle16(superblock.s_isize) + - swizzle16(superblock.s_fsize + 7UL) / 8); + (swizzle16(superblock.s_fsize) + 7UL) / 8); if (!bitmap || !linkmap) { fprintf(stderr, "Not enough memory.\n"); -- 2.34.1