Michael Brown <[email protected]> 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);}
_______________________________________________
ipxe-devel mailing list
[email protected]
https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel

Reply via email to