Merge branch 'pre-master' of ssh://git.code.sf.net/p/ngspice/ngspice into pre-master

This commit is contained in:
dwarning 2020-01-26 10:10:10 +01:00
commit 73773521f8
1 changed files with 1 additions and 1 deletions

View File

@ -457,7 +457,7 @@ struct dvec *vec_fromplot(char *word, struct plot *plot) {
if (word[1] == '(') { /* x(, x != '(' */
const char * const p_last_close_paren = strrchr(word + 2, ')');
if (p_last_close_paren != (char *) NULL &&
p_last_close_paren - word > (ptrdiff_t) 3 &&
p_last_close_paren - word > (ptrdiff_t) 2 &&
p_last_close_paren[1] == '\0') {
/* Of form x(node). Create node string. */
DS_CREATE(ds, 100);