From eb353ee2f7ec1dcebf267c2655907d00a2f2cd1f Mon Sep 17 00:00:00 2001 From: Giles Atkinson <“gatk555@gmail.com”> Date: Mon, 10 Oct 2022 11:07:53 +0100 Subject: [PATCH] Fix XSPICE's node prefix '~' when PSPICE compatability is used. --- src/frontend/inpcom.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 43d6350b2..c4851a8b1 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -8828,9 +8828,8 @@ static struct card *pspice_compat(struct card *oldcard) } } /* We may have '~' in path names or A devices */ - char *firsttok = nexttok(card->line); /* skip over whitespaces */ - if (ciprefix(".inc", firsttok) || ciprefix(".lib", firsttok) || - ciprefix("A", firsttok)) + if (ciprefix(".inc", card->line) || ciprefix(".lib", card->line) || + ciprefix("A", card->line)) continue; if ((t = strstr(card->line, "~")) != NULL) {