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();
|
c = GetChar();
|
||||||
|
|
||||||
repl->r_ptr = repl->r_text = Malloc(repl->r_size = ITEXTSIZE);
|
repl->r_ptr = repl->r_text = Malloc(repl->r_size = ITEXTSIZE);
|
||||||
|
*repl->r_ptr = '\0';
|
||||||
while ((c != EOI) && (class(c) != STNL)) {
|
while ((c != EOI) && (class(c) != STNL)) {
|
||||||
if (BLANK(c)) {
|
if (BLANK(c)) {
|
||||||
if (!blank++) add2repl(repl, ' ');
|
if (!blank++) add2repl(repl, ' ');
|
||||||
|
|
|
@ -537,6 +537,7 @@ macro2buffer(repl, idf, args)
|
||||||
int err = 0;
|
int err = 0;
|
||||||
char *stringify();
|
char *stringify();
|
||||||
|
|
||||||
|
assert(ptr[idf->id_macro->mc_length] == '\0');
|
||||||
while (*ptr) {
|
while (*ptr) {
|
||||||
if (*ptr == '\'' || *ptr == '"') {
|
if (*ptr == '\'' || *ptr == '"') {
|
||||||
register int delim = *ptr;
|
register int delim = *ptr;
|
||||||
|
|
Loading…
Add table
Reference in a new issue