Source-Changes archive

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

CVS commit: src/bin/sh




To: source-changes%NetBSD.org@localhost

Subject: CVS commit: src/bin/sh

From: "Christos Zoulas" <christos%netbsd.org@localhost>

Date: Tue, 23 Aug 2011 06:04:39 -0400


Module Name:    src
Committed By:   christos
Date:           Tue Aug 23 10:04:39 UTC 2011

Modified Files:
        src/bin/sh: expand.c

Log Message:
PR/45269: Andreas Gustafsson: Instead of falling off the edge when eating 
trailing newlines
if the block has moved, arrange so that trailing newlines are never placed in 
the string
in the first place, by accumulating them and adding them only after we've 
encountered a
non-newline character. This allows also for more efficient appending since we 
know how much
we need beforehand. From FreeBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.84 -r1.85 src/bin/sh/expand.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.






Prev by Date: CVS commit: src/bin/sh

Next by Date: CVS commit: src/distrib/utils/sysinst

Previous by Thread: CVS commit: src/bin/sh

Next by Thread: CVS commit: src/distrib/utils/sysinst

Indexes:

reverse Date

reverse Thread

Old Index



Home | Main Index | Thread Index | Old Index