tiny fix, a boundary check

This commit is contained in:
rlar 2010-11-25 19:42:20 +00:00
parent b7d969a472
commit eaadf5d2bc
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2010-11-25 Robert Larice
* src/frontend/inpcom.c :
tiny fix, a boundary check
2010-11-25 Robert Larice
* src/xspice/icm/dlmain.c ,
* src/xspice/icm/makedefs.in :

View File

@ -2800,7 +2800,7 @@ inp_fix_param_values( struct line *deck )
if ( ciprefix( ".meas", line ))
if ((( *(equal_ptr+1) == 'v' ) || ( *(equal_ptr+1) == 'i' )) && ( *(equal_ptr+2) == '(' )) {
// find closing ')' and skip token v(...) or i(...)
while (( equal_ptr) && *equal_ptr != ')') equal_ptr++;
while (*equal_ptr != ')' && *(equal_ptr+1) != '\0') equal_ptr++;
line = equal_ptr + 1;
continue;
}