]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
skip NON-SPACE, not skip spaces.
authorAlan T. DeKok <aland@freeradius.org>
Fri, 30 Aug 2019 14:59:00 +0000 (10:59 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 30 Aug 2019 14:59:00 +0000 (10:59 -0400)
When making global changes, using "perl -p -i -e s/find/replace/g"
is MUCH safer and MUCH better than using random other tools.

src/lib/server/command.c

index a67105ee9123b3a1e4223d8af399c39dbee0452a..4bc4dce72e3f0663b3c1418f7a531530d2723d74 100644 (file)
@@ -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;
        }