mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
C99 section 5.1.2.2.1p2 mandates that: - argv[argc] shall be a null pointer. https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf So we might as well copy the null pointer along in the memcpy() rather than copy everything up to the null pointer and then add one afterwards for simplicity. Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Julien Olivain <ju.o@free.fr>