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