fix commit: inp2q.c, #18/23, rewrite, combine two 'for' loop's

which replaced a INPgetNetTok() by INPgetTok()
causing a bug when handling special node names
for example this case
  q1 /c /c 0 npnmodel
This commit is contained in:
rlar 2017-07-05 18:06:55 +02:00
parent 2b17f3292d
commit 9ddd1d7d40
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ void INP2Q(CKTcircuit *ckt, INPtables * tab, card * current, CKTnode *gnode)
for (i = 0; ; i++) {
char *token;
INPgetTok(&line, &token, 1);
INPgetNetTok(&line, &token, 1);
if (i >= 3 && INPlookMod(token)) {
INPinsert(&token, tab);
txfree(INPgetMod(ckt, token, &thismodel, tab));