summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/setenv.c
Commit message (Collapse)AuthorAgeFilesLines
* Only realloc() environ if we're sure that we know where it came from.brian2000-09-201-5/+4
| | | | | | The recent problems with sshd were due to sshd reassigning `environ' when setenv() thinks it owns it. setenv() subsequently realloc()s the new version of environ and *boom*
* o Back out rev 1.4 - reallocf() failure clobbers existing `environ'.ru2000-01-271-3/+8
| | | | | | | | o Do not override `environ' if realloc() fails, leave it intact. o Set `alloced' only when memory is actually allocated. PR: bin/5604 (2nd part) Reviewed by: bde
* Replace memory leaking instances of realloc with non-leaking reallocf.imp1998-09-161-1/+1
| | | | | | | | | | | In some cases replace if (a == null) a = malloc(x); else a = realloc(a, x); with simple reallocf(a, x). Per ANSI-C, this is guaranteed to be the same thing. I've been running these on my system here w/o ill effects for some time. However, the CTM-express is at part 6 of 34 for the CAM changes, so I've not been able to do a build world with the CAM in the tree with these changes. Shouldn't impact anything, but...
* General -Wall warning cleanup, part I.jkh1996-07-121-2/+3
| | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu>
* Remove trailing whitespace.rgrimes1995-05-301-1/+1
|
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-271-0/+116
OpenPOWER on IntegriCloud