inpcom.c: patch provided by Simon Chang: correct function name substitution #2

This commit is contained in:
rlar 2013-10-19 14:51:36 +02:00
parent 2c38a69f92
commit a921b5444e
1 changed files with 1 additions and 4 deletions

View File

@ -6292,9 +6292,8 @@ inp_fix_temper_in_param(struct line *deck)
for (; card; card = card->li_next) {
char *new_str = NULL; /* string we assemble here */
char *curr_str;/* where we are in curr_line */
char *curr_line = card->li_line;
char * new_tmp_str, *tmp_str, *beg_str;
char * new_tmp_str, *tmp_str;
/* Some new variables... */
char *chp;
char *chp_start;
@ -6333,8 +6332,6 @@ inp_fix_temper_in_param(struct line *deck)
if (sub_count[subckt_depth] != new_func->subckt_count)
continue;
beg_str = curr_str = curr_line;
/* This is the new code - it finds each variable name and checks it against new_func->funcname */
for (state = 0, var_name = chp_start = chp = curr_line; *chp; chp++) {
switch(state)