diff --git a/sbin/fsck_msdosfs/dir.c b/sbin/fsck_msdosfs/dir.c index a532dcaad0c..b990b0cd853 100644 --- a/sbin/fsck_msdosfs/dir.c +++ b/sbin/fsck_msdosfs/dir.c @@ -444,10 +444,8 @@ checksize(struct bootblock *boot, struct fatEntry *fat, u_char *p, return FSOK; } -static const u_char dot_name[] = { - '.', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ' }; -static const u_char dotdot_name[] = { - '.', '.',' ',' ',' ',' ',' ',' ',' ',' ',' ' }; +static const u_char dot_name[11] = ". "; +static const u_char dotdot_name[11] = ".. "; /* * Basic sanity check if the subdirectory have good '.' and '..' entries,