diff options
author | Marcelo Araujo <araujo@FreeBSD.org> | 2016-04-22 03:32:14 +0000 |
---|---|---|
committer | Marcelo Araujo <araujo@FreeBSD.org> | 2016-04-22 03:32:14 +0000 |
commit | 091ea4a0919cdbfb8c73e28e732e3f16477d7f22 (patch) | |
tree | 455e5062e6bba4dd9809597ba8110e9f4dcadbf3 | |
parent | e55a6575d900c2fe5f08e6563ec4402569be21da (diff) |
Notes
-rw-r--r-- | sbin/fsck_msdosfs/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/fsck_msdosfs/dir.c b/sbin/fsck_msdosfs/dir.c index 7ac07f6b3ffa..52f1e9c3d635 100644 --- a/sbin/fsck_msdosfs/dir.c +++ b/sbin/fsck_msdosfs/dir.c @@ -223,7 +223,7 @@ resetDosDirSection(struct bootblock *boot, struct fatEntry *fat) b1 = boot->bpbRootDirEnts * 32; b2 = boot->bpbSecPerClust * boot->bpbBytesPerSec; - if ((buffer = malloc(len = b1 > b2 ? b1 : b2)) == NULL) { + if ((buffer = malloc(len = MAX(b1, b2))) == NULL) { perr("No space for directory buffer (%zu)", len); return FSFATAL; } |