=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sed/compile.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- src/usr.bin/sed/compile.c 1998/02/15 10:38:35 1.7 +++ src/usr.bin/sed/compile.c 1998/09/22 21:21:43 1.8 @@ -1,4 +1,4 @@ -/* $OpenBSD: compile.c,v 1.7 1998/02/15 10:38:35 deraadt Exp $ */ +/* $OpenBSD: compile.c,v 1.8 1998/09/22 21:21:43 brian Exp $ */ /*- * Copyright (c) 1992 Diomidis Spinellis. @@ -39,7 +39,7 @@ #ifndef lint /* from: static char sccsid[] = "@(#)compile.c 8.1 (Berkeley) 6/6/93"; */ -static char *rcsid = "$OpenBSD: compile.c,v 1.7 1998/02/15 10:38:35 deraadt Exp $"; +static char *rcsid = "$OpenBSD: compile.c,v 1.8 1998/09/22 21:21:43 brian Exp $"; #endif /* not lint */ #include @@ -644,6 +644,7 @@ text = xmalloc(asize); } } + text[size] = '\0'; return (xrealloc(text, size + 1)); }