]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When recording the original arguments, stop short if we encounter
authorjdp <jdp@FreeBSD.org>
Mon, 4 Dec 2000 01:45:57 +0000 (01:45 +0000)
committerjdp <jdp@FreeBSD.org>
Mon, 4 Dec 2000 01:45:57 +0000 (01:45 +0000)
commit2a2576da75de85b096219447c61387c1af59093b
tree5ff6534e19ee039fb3043c49ec02e3254cbceee6
parent588932041e79922c56d2f2d9740050a5858763b5
When recording the original arguments, stop short if we encounter
a NULL argument.  Some programs change the contents of the argv
array, typically to remove some special arguments.  They shorten
argv by storing a NULL where an argument pointer used to be.  Such
programs core dumped if they called setproctitle(), because it
would try to apply strlen() to a NULL pointer.
lib/libc/gen/setproctitle.c