gettext/gettext-fix-octal-char-escape.patch

15 lines
511 B
Diff
Raw Normal View History

2014-10-03 04:00:45 +00:00
diff --git a/gettext-tools/src/x-c.c b/gettext-tools/src/x-c.c
index 479b8e8..a5978c9 100644
--- a/gettext-tools/src/x-c.c
+++ b/gettext-tools/src/x-c.c
@@ -996,7 +996,8 @@ literalstring_parse (const char *string, lex_pos_ty *pos,
for (n = 0, j = 0; j < 3; ++j)
{
n = n * 8 + c - '0';
- switch (*++p)
+ c = *++p;
+ switch (c)
{
default:
break;