Warner Losh
3f330d7d1a
remove __P
2002-03-22 01:42:45 +00:00
Mark Murray
e74bf75f1c
WARNS=2 partial fix; use NO_WERROR to protect against some hard-to-fix warnings.
...
Use __FBSDID(), kill register keyword.
2001-12-12 23:20:16 +00:00
Mike Heffner
0ea56610b4
Don't allocate a zero byte segment.
...
PR: bin/11900
MFC after: 2 weeks
2001-11-08 16:47:05 +00:00
David E. O'Brien
8e33c0a0f6
Expand xmalloc in-place, along with xrealloc; which wasn't even ANSI in its
...
implementation.
2001-07-24 14:05:21 +00:00
Ruslan Ermilov
94ccf5741c
Don't leak memory when compiling text following the a',
c' or `i' command.
...
Testcase:
echo FOO | sed "/FOO/c\\
`jot -b 'aaaa\' 500`"
Submitted by: Max Khon <fjoe@newst.net>
2001-05-18 09:48:17 +00:00
Brian Feldman
175de1e677
Add a new flag: -E enables "extended" regular expressions.
2000-03-19 19:41:53 +00:00
Peter Wemm
c3aac50f28
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
Archie Cobbs
c56690ef7b
Fix a new bug introduced by the previous bug fix
1998-12-08 21:29:22 +00:00
Archie Cobbs
1a6583da3a
Fix brokenness compiling "s/pat/subst/" when length of subst is >= 4090 chars.
...
PR: bin/7939
1998-12-07 05:35:54 +00:00
Brian Somers
13ede3c083
Terminate our output string correctly if we've got
...
an ``a'' command that has an escaped newline on the
last line of the last script that we're processing.
This fixes exmh2/scripts/build when /etc/malloc.conf -> AJ
1998-09-22 18:39:47 +00:00
Philippe Charnier
73a08bb2ad
Remove local redefinition for err(). Add usage().
1997-08-11 07:21:08 +00:00
Andrey A. Chernov
726aebe5e0
Localize it
...
8bit cleanup
1996-08-11 17:46:35 +00:00
Bruce Evans
49e6559936
Yet^2 another fix for the line continuation bug.
...
The fundamental problem with the original code is that it accesses
p[-2] which is one before the beginning of the input buffer for
empty lines. rev.1.6 just moved the problem from failures when
p[-2] happens to be '\\' to failures when it happens to be '\0'.
rev.1.5 was confused about the trailing newline and other things.
I went back to rev.1.5 and fixed it. The result is the same as
Keith Bostic's final version in PR 1356 except it loses more
gracefully for excessively long input lines.
1996-07-17 12:18:51 +00:00
David Greenman
4f58776644
Yet another fix for the line continuation bug in sed. Keith's patch
...
introduced a new bug. This fix appears to work correctly. Fixes PR#1350.
Submitted by: mark@linus.demon.co.uk (Mark Valentine)
1996-06-26 05:54:32 +00:00
David Greenman
796d43185d
Fix from Keith Bostic <bostic@bsdi.com> for bug in sed dealing with
...
continuation lines.
Submitted by: Keith Bostic via Kirk McKusick
1996-06-19 11:20:07 +00:00
Jordan K. Hubbard
ce19262d8c
Merge various fixes from NetBSD. This will allow the WordPerfect for
...
SCO installation to run all the way through (some POSIX fixes).
1995-08-16 05:56:44 +00:00
Rodney W. Grimes
7799f52a32
Remove trailing whitespace.
1995-05-30 06:41:30 +00:00
Joerg Wunsch
fe89da38f6
Sed dumps core when linked with some coalescing malloc because it
...
doesn't initialize malloced structure.
Submitted by: vode@hut.fi
1995-04-05 22:55:27 +00:00
Rodney W. Grimes
9b50d90275
BSD 4.4 Lite Usr.bin Sources
1994-05-27 12:33:43 +00:00