From 7a2dfd46eb35181ba09f479fab5c9bff8c3838a4 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 20 Dec 2014 18:14:05 +0100 Subject: [PATCH] inpcom.c, `inp_quote_params()', bug fix, starting point for search of next identifier --- src/frontend/inpcom.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index b75dc6c90..97a0c7135 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -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++; } } }