Browse Source

bug no. 3317928

h_vogt 15 years ago
parent
commit
b8e7dd2af0
  1. 1
      ChangeLog
  2. 4
      src/frontend/inpcom.c

1
ChangeLog

@ -8,6 +8,7 @@
/xspice/icm/analog/file_source/ifspec.ifs:
code model with input from file added (T. Sailer)
example/xspice/fstest.sp, sine.m: test of 'filesource'
* inpcom.c: bug no. 3317928, patched by Robert
2011-06-23 Robert Larice
* src/frontend/options.c ,

4
src/frontend/inpcom.c

@ -2500,7 +2500,7 @@ inp_get_func_from_line( char *line )
ptr = end;
while ( !isspace( *end ) && *end != ',' && *end != ')' ) end++;
if(end > ptr)
func_params[num_functions-1][num_params++] = strndup(ptr, end-ptr);
func_params[num_functions-1][num_params++] = copy_substring(ptr, end);
}
num_parameters[num_functions-1] = num_params;
@ -2696,7 +2696,7 @@ if ( *str_ptr == ')' ) *str_ptr = ' ';
break;
}
params[num_params++] =
inp_expand_macro_in_str(strndup(beg_parameter, curr_ptr - beg_parameter));
inp_expand_macro_in_str(copy_substring(beg_parameter, curr_ptr));
}
if ( num_parameters[i] != num_params ) {

Loading…
Cancel
Save