diff options
| author | Brian Somers <brian@FreeBSD.org> | 1998-09-22 18:39:47 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 1998-09-22 18:39:47 +0000 |
| commit | 13ede3c08301de2e9c0dc40923ce846384052fbf (patch) | |
| tree | c24c016631afd456010b19b79e1137bf5e28ed4e /usr.bin/sed | |
| parent | 42d36a9a0b7b5bda29bab556ce0c1071b6700232 (diff) | |
Notes
Diffstat (limited to 'usr.bin/sed')
| -rw-r--r-- | usr.bin/sed/compile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/sed/compile.c b/usr.bin/sed/compile.c index 04bac84d21c4..1c9b82ba1912 100644 --- a/usr.bin/sed/compile.c +++ b/usr.bin/sed/compile.c @@ -40,7 +40,7 @@ static char sccsid[] = "@(#)compile.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id$"; + "$Id: compile.c,v 1.9 1997/08/11 07:20:58 charnier Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -652,6 +652,7 @@ compile_text() text = xmalloc(asize); } } + text[size] = '\0'; return (xrealloc(text, size + 1)); } |
