From: Bruno Haible Date: Mon, 13 Apr 2020 11:11:15 +0000 (+0200) Subject: desktop: Small parser fix. X-Git-Tag: v0.20.2~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=378e64324e7993db457f1c2ac65d44fc7aaf537e;p=thirdparty%2Fgettext.git desktop: Small parser fix. * gettext-tools/src/read-desktop.c (desktop_lex): Fix handling of control characters in group names. --- diff --git a/gettext-tools/src/read-desktop.c b/gettext-tools/src/read-desktop.c index 4de134f3c..50ed32e92 100644 --- a/gettext-tools/src/read-desktop.c +++ b/gettext-tools/src/read-desktop.c @@ -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;