Skip name and node if searching for 'tc' in an

R, L, or C line. Thus a node name 'tc' would be allowed.
This commit is contained in:
Holger Vogt 2019-08-17 13:42:43 +02:00
parent 6a1b6ced18
commit 5a45fdbebb
1 changed files with 5 additions and 1 deletions

View File

@ -7243,7 +7243,11 @@ pspice_compat(struct card *oldcard)
}
if (*cut_line == 'r' || *cut_line == 'l' || *cut_line == 'c') {
char *tctok = search_plain_identifier(cut_line, "tc");
/* Skip name and two nodes */
char *ntok = nexttok(cut_line);
ntok = nexttok(ntok);
ntok = nexttok(ntok);
char *tctok = search_plain_identifier(ntok, "tc");
if (tctok) {
char *tctok1 = strchr(tctok,'=');
if (tctok1)