Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src



On Apr 22, 11:07am, yamt%mwd.biglobe.ne.jp@localhost (YAMAMOTO Takashi) wrote:
-- Subject: Re: CVS commit: src

| hi,
| 
| > Module Name:        src
| > Committed By:       christos
| > Date:               Fri Apr 20 17:31:30 UTC 2012
| > 
| > Modified Files:
| >     src/include: stdlib.h
| >     src/lib/libc/compat/include: stdlib.h
| >     src/lib/libc/compat/stdlib: Makefile.inc
| > Added Files:
| >     src/lib/libc/compat/stdlib: compat_putenv.c
| > 
| > Log Message:
| > PR/46360: YAMAMOTO Takashi: Restore NetBSD-5 compatibility with putenv()
| > copying the passed string (which is not ToG compliant), instead of using
| > it directly in the environment arrat as it should. Needs to be pulled up
| > to NetBSd-6.
| 
| thanks for a quick fix.
| but why the compat code is different from the netbsd-5 code?
| this version leaks memory if called repeatedly, doesn't it?

Yes, indeed. This is because the guts of the environment code have been
re-written. I guess I can make it use setenv() so that the environment
code takes care of it.

christos


Home | Main Index | Thread Index | Old Index