From: Alan T. DeKok Date: Fri, 30 Aug 2019 14:59:00 +0000 (-0400) Subject: skip NON-SPACE, not skip spaces. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59cd3df088d4a8955deb2b29a6600bc8cc55d2e7;p=thirdparty%2Ffreeradius-server.git skip NON-SPACE, not skip spaces. When making global changes, using "perl -p -i -e s/find/replace/g" is MUCH safer and MUCH better than using random other tools. --- diff --git a/src/lib/server/command.c b/src/lib/server/command.c index a67105ee912..4bc4dce72e3 100644 --- a/src/lib/server/command.c +++ b/src/lib/server/command.c @@ -1871,7 +1871,7 @@ static char const *skip_word(char const *text) char const *word = text; if ((*word != '"') && (*word != '\'')) { - fr_skip_spaces(word); + while (*word && !isspace((int) *word)) word++; return word; }