]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
desktop: Small parser fix.
authorBruno Haible <bruno@clisp.org>
Sun, 25 Aug 2019 09:46:48 +0000 (11:46 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 25 Aug 2019 09:46:48 +0000 (11:46 +0200)
* gettext-tools/src/read-desktop.c (desktop_lex): Fix handling of control
characters in group names.

gettext-tools/src/read-desktop.c

index 31d4c851d9c0020aa11b111d2682445150b37c93..9ca6fdbd515b7d39d8400ea0bd3c1c537b0209d0 100644 (file)
@@ -263,7 +263,7 @@ desktop_lex (token_ty *tp)
                   }
                 /* Group names may contain all ASCII characters
                    except for '[' and ']' and control characters.  */
-                if (!(c_isascii (c) && c != '[') && !c_iscntrl (c))
+                if (!(c_isascii (c) && c != '[' && !c_iscntrl (c)))
                   break;
                 APPEND (c);
               }