From 8d0df0d024a1b436fc801b5cea46735998767c82 Mon Sep 17 00:00:00 2001 From: rlar Date: Mon, 13 Nov 2017 18:48:30 +0100 Subject: [PATCH] stripbraces(), fix split personality of `i' --- src/frontend/numparam/spicenum.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/numparam/spicenum.c b/src/frontend/numparam/spicenum.c index 4dd7ba9c4..ed5ba308b 100644 --- a/src/frontend/numparam/spicenum.c +++ b/src/frontend/numparam/spicenum.c @@ -140,10 +140,11 @@ stripbraces(SPICE_DSTRINGPTR dstr_p) if (s[j] >= ' ') cadd(&tstr, ' '); - i = spice_dstring_length(&tstr); + int ilen = spice_dstring_length(&tstr); sadd(&tstr, s + j); scopyd(dstr_p, &tstr); s = spice_dstring_value(dstr_p); + i = ilen; ls = spice_dstring_length(dstr_p); }