svn commit: r345900 - head/sbin/fsck_msdosfs

Xin LI delphij at gmail.com
Tue Sep 3 14:06:24 UTC 2019


On Fri, Apr 5, 2019 at 12:56 PM Hans Petter Selasky <hps at selasky.org> wrote:

> On 4/5/19 9:51 PM, Conrad Meyer wrote:
> > static const u_char dot_name[11] = ".          ";
> > static const u_char dotdot_name[11] = "..         ";
> >
> > Seems more clear to me.
>
> Using this syntax will include a terminating zero.
>

No, that only applies when the length is omitted (char foo[] = "string"
would have \0, but foo[sizeof("string") -1] = "string" won't).

Cheers,



>
> --HPS
>


More information about the svn-src-head mailing list