From 1f9cf0b6b5409ef1d2e4d8fc22aa79ec9871adda Mon Sep 17 00:00:00 2001 From: rlar Date: Thu, 30 Oct 2014 18:53:21 +0100 Subject: [PATCH] inpcom.c, bug fix, #293 Bug in .option rseries = with parallel inductors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit reported by João Alberto and Andy Fierman in http://sourceforge.net/p/ngspice/bugs/293/ --- src/frontend/inpcom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index fff371366..6e51ef2d3 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -5967,8 +5967,8 @@ inp_add_series_resistor(struct line *deck) char *node2 = gettok(&cut_line); /* new L line and new R line */ - char *newL = tprintf("%s %s %s_intern__ %s", title_tok, node1, node2, cut_line); - char *newR = tprintf("R%s_intern__ %s_intern__ %s %s", title_tok, node2, node2, rval); + char *newL = tprintf("%s %s %s_intern__ %s", title_tok, node1, title_tok, cut_line); + char *newR = tprintf("R%s_intern__ %s_intern__ %s %s", title_tok, title_tok, node2, rval); struct line *d;