From 9ddd1d7d401469668b7e947f314e8433cdd8a53a Mon Sep 17 00:00:00 2001 From: rlar Date: Wed, 5 Jul 2017 18:06:55 +0200 Subject: [PATCH] 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 --- src/spicelib/parser/inp2q.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spicelib/parser/inp2q.c b/src/spicelib/parser/inp2q.c index 7c1cc252a..45ac66e28 100644 --- a/src/spicelib/parser/inp2q.c +++ b/src/spicelib/parser/inp2q.c @@ -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));