From: Jason Riedy Date: Mon, 05 Dec 2005 18:07:17 GMT Subject: Re: [PATCH] Add compat/setenv.c, use in git.c. Message-ID: <14404.1133806037@lotus.CS.Berkeley.EDU> In-Reply-To: <7vr78sebp8.fsf@assigned-by-dhcp.cox.net> And Junio C Hamano writes: - putenv(3) says - The string pointed to by string becomes part of the environment, - so altering the string changes the environment. Good catch, thanks. The Solaris man page first says the string space is "no longer used", but at the very end warns against using an automatic variable. Chalk one up for lousy docs. (And sizeof(char) is just habit; 99% of my mallocs aren't of char... Sorry.) Jason