[ipxe-devel] [resending] truncate menu title
Christian Hesse
list at eworm.de
Wed Jul 4 07:38:53 UTC 2012
Michael Brown <mbrown at fensystems.co.uk> on Tue, 2012/07/03 17:07:
> On Tuesday 03 Jul 2012 16:58:14 Christian Hesse wrote:
> > > > The attached one should be correct. We should not count the null byte.
> > >
> > > strlen() returns the length of a string excluding the terminating NUL.
> >
> > You are right... But sizeof() returns 81 (MENU_COLS + 1) in this case.
> > So how about this?
>
> snprintf() requires the size of the buffer (including space for the
> terminating NUL), so sizeof(buf) is correct.
Hmm, everything seems to work fine now. I was hunting a ghost.
Probably I reverted my local patch but did not pull from upstream... Sorry
for the noise.
--
main(a,b){char*/* Schoene Gruesse */c="B?IJj;M"
"EHCX:;";for(a/* Chris get my mail address: */=0;b=c[a++];)
putchar(b-1/(/* gcc -o sig sig.c && ./sig */b/42*2-3)*42);}
More information about the ipxe-devel
mailing list