gettext/gettext-fix-octal-char-escape.patch
2014-10-03 13:00:45 +09:00

15 lines
511 B
Diff

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;