fixed small bug
This commit is contained in:
parent
671556cfc4
commit
c6d60cb24f
2 changed files with 2 additions and 0 deletions
|
@ -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, ' ');
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue