From bb8cdb2e2dada5394cf919b7312e6799b04215bb Mon Sep 17 00:00:00 2001 From: Vogt Date: Wed, 11 Nov 2020 20:36:20 +0100 Subject: [PATCH] enable the use of either single or double quotes for file path names (was mixed up, becaus isquote() aknowledges both types). --- src/frontend/inpcom.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 0b707d7b3..edfe6399b 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -6107,10 +6107,11 @@ static char *get_quoted_token(char *string, char **token) return string; if (isquote(*s)) { - + /* we may find single ' or double " quotes */ + char thisquote = *s; char *t = ++s; - while (*t && !isquote(*t)) + while (*t && !(*t == thisquote)) t++; if (!*t) { /* teriminator quote not found */