]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
desktop: Small parser fix.
authorBruno Haible <bruno@clisp.org>
Mon, 13 Apr 2020 11:11:15 +0000 (13:11 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 13 Apr 2020 11:11:15 +0000 (13:11 +0200)
* gettext-tools/src/read-desktop.c (desktop_lex): Fix handling of control
characters in group names.

gettext-tools/src/read-desktop.c

index 4de134f3cc6dfc77b3e8b46163e9b2748ca87856..50ed32e922986615d3e1271293400209516a4dd9 100644 (file)
@@ -257,7 +257,7 @@ desktop_lex (token_ty *tp)
                   default:
                     /* 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);
                     continue;