From ec24c1ded76e517e788c5a3fcb36251090f2f85c Mon Sep 17 00:00:00 2001 From: rlar Date: Tue, 26 Dec 2017 15:19:14 +0100 Subject: [PATCH] nupa_copy(), fix lvalue --- src/frontend/numparam/spicenum.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/numparam/spicenum.c b/src/frontend/numparam/spicenum.c index aca3dd89f..42c2c3e6d 100644 --- a/src/frontend/numparam/spicenum.c +++ b/src/frontend/numparam/spicenum.c @@ -700,10 +700,10 @@ nupa_copy(struct card *deck) SPICE_DSTRING u; spice_dstring_init(&u); - (s_end - s) = (int) strlen(s); + s_end = s + (int) strlen(s); while ((s_end - s > 0) && (s[s_end - s - 1] <= ' ')) - (s_end - s)--; + s_end--; pscopy(&u, s, s + (s_end - s)); /* strip trailing space, CrLf and so on */ dicoS->srcline = linenum;