getexpress(), transform pscopy(,x,y,) --> pscopy(,x+y,y-y,) (requirement strlen(x) >= y to be verified later)

This commit is contained in:
rlar 2016-05-15 20:40:49 +02:00
parent 0f00fd3043
commit 7509fa17da
1 changed files with 1 additions and 1 deletions

View File

@ -1408,7 +1408,7 @@ getexpress(const char * const s, SPICE_DSTRINGPTR tstr_p, const char **pi)
tpe = NUPA_REAL;
}
pscopy(tstr_p, s, (int)(ia_ptr - s)-1, (int) (iptr - ia_ptr));
pscopy(tstr_p, ia_ptr - 1, 0, (int) (iptr - ia_ptr));
if (iptr[-1] == '}')
iptr++;