[BusyBox 0000980]: patch to avoid "broadcast +" syntax
Rob Landley
rob at landley.net
Mon Nov 27 14:00:49 PST 2006
On Monday 27 November 2006 1:02 pm, Roberto A. Foglietta wrote:
> argv is a vector which is not limited by argc so *++argv is always a
> good pointer which could be randomly NULL or not.
No, argv[argc] should be NULL and none of the ones before it should be. It's
not random, argc is redundant and argv[] is a null terminated array of char
pointers.
Same with envp, which is the third argument to main(). (There's no argc
equivalent for envp.)
Rob
--
"Perfection is reached, not when there is no longer anything to add, but
when there is no longer anything to take away." - Antoine de Saint-Exupery
More information about the busybox
mailing list