aboutsummaryrefslogtreecommitdiff
path: root/libbb/trim.c
AgeCommit message (Collapse)Author
2001-04-23Reversed last patch; unnecessary.Mark Whitley
2001-04-23Added a sanity check to fix weird bug exposed when sourcing in commands from aMark Whitley
file with lash. Based on report from Heinz Walter.
2001-04-04Patch from Larry Doolittle to eliminate needless thrashingEric Andersen
about when trimming long strings with lots of trailing white space.
2001-04-03if strlen(s) was 0, it would then end up using s[-1] as an array index. Bad,Eric Andersen
bad, bad. This was crashing the shell on powerpc boxes, though all other archs seem to have a much more forgiving malloc implementations. I finally found this bug using electric-fence on a powerpc box. -Erik
2001-03-16Convert utility.c into libbb.a. It is now a whole pile of .cEric Andersen
files. Clean up the resulting damage and fix up the makefile. -Erik