mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
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
This commit is contained in:
parent
42d36a9a0b
commit
13ede3c083
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=39571
1 changed files with 2 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue