inpcom.c, `inp_quote_params()', bug fix, starting point for search of next identifier

This commit is contained in:
rlar 2014-12-20 18:14:05 +01:00
parent d6c280c9b1
commit 7a2dfd46eb
1 changed files with 3 additions and 2 deletions

View File

@ -6138,12 +6138,13 @@ inp_quote_params(struct line *s_c, struct line *e_c, struct dependency *deps, in
}
*str_ptr = '\0';
new_str = tprintf("%s{%s}%s", curr_line, deps[i].param_name, end);
str_ptr = new_str + strlen(curr_line) + strlen(deps[i].param_name);
str_ptr = new_str + strlen(curr_line) + strlen(deps[i].param_name) + 2;
tfree(c->li_line);
curr_line = c->li_line = new_str;
} else {
str_ptr += strlen(deps[i].param_name);
}
str_ptr++;
}
}
}