[BusyBox] dietlibc patch for pre5
Vladimir N. Oleynik
dzo at simtreas.ru
Sat Jan 31 16:40:52 UTC 2004
Hannes,
>btw, I've also fixed an 'interesting' use of strchrnul:
>
> (*vp->func)(strchrnul(s, '=') + 1);
>
>I.e. if 's' does not contain the character '=', the argument to the
>function will be a pointer to 's + strlen(s) + 1'. Uh-oh.
Yes. But ash don`t have error.
vartable have two format: "VAR=" or "VAR\0".
Last string (undefault variable) have double zero.
And 's + strlen(s) + 1' pointer setted to last zero.
--w
vodz
More information about the busybox
mailing list