fixed small bug

This commit is contained in:
eck 1989-11-27 11:40:58 +00:00
parent 671556cfc4
commit c6d60cb24f
2 changed files with 2 additions and 0 deletions

View file

@ -639,6 +639,7 @@ get_text(formals, length)
c = GetChar();
repl->r_ptr = repl->r_text = Malloc(repl->r_size = ITEXTSIZE);
*repl->r_ptr = '\0';
while ((c != EOI) && (class(c) != STNL)) {
if (BLANK(c)) {
if (!blank++) add2repl(repl, ' ');

View file

@ -537,6 +537,7 @@ macro2buffer(repl, idf, args)
int err = 0;
char *stringify();
assert(ptr[idf->id_macro->mc_length] == '\0');
while (*ptr) {
if (*ptr == '\'' || *ptr == '"') {
register int delim = *ptr;