allow again single letter vector names

This commit is contained in:
Holger Vogt 2020-01-26 09:04:53 +01:00
parent 0eddbe5b5e
commit 2cbf2e3ac1
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);