Browse Source

nupa_subcktcall(), avoid `jp' pointing beyond end of string

The skip whitespace loop in the following line shall
  safely swallow the delimiting space instead
pre-master-46
rlar 8 years ago
parent
commit
437f92385a
  1. 2
      src/frontend/numparam/xpressn.c

2
src/frontend/numparam/xpressn.c

@ -1607,7 +1607,7 @@ nupa_subcktcall(dico_t *dico, char *s, char * const x, char * const inst_name)
char *p_subname = search_isolated_identifier(t_p, spice_dstring_value(&subname));
if (p_subname) {
char *jp = p_subname + spice_dstring_length(&subname) + 1; /* 1st position of arglist */
char *jp = p_subname + spice_dstring_length(&subname); /* 1st position of arglist */
while ((jp < ls_ptr) && ((*jp <= ' ') || (*jp == ',')))
jp++;

Loading…
Cancel
Save