aboutsummaryrefslogtreecommitdiff
path: root/locale/programs/linereader.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-12-06 02:40:40 +0000
committerUlrich Drepper <drepper@redhat.com>2000-12-06 02:40:40 +0000
commitc50ec4e093e109363a4d2f25dfe386249080325e (patch)
treee2659bbcf6663c6d1e68d85b82715a515bd733dd /locale/programs/linereader.c
parentd32ffbece9a6ba037fc2ede323dbf5c5a5da0485 (diff)
downloadglibc-c50ec4e093e109363a4d2f25dfe386249080325e.zip
glibc-c50ec4e093e109363a4d2f25dfe386249080325e.tar.gz
glibc-c50ec4e093e109363a4d2f25dfe386249080325e.tar.bz2
(get_toplvl_escape): Recognize more than 4 bytes in escape sequence.
Diffstat (limited to 'locale/programs/linereader.c')
-rw-r--r--locale/programs/linereader.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/locale/programs/linereader.c b/locale/programs/linereader.c
index 4be3701..01f5c9d 100644
--- a/locale/programs/linereader.c
+++ b/locale/programs/linereader.c
@@ -376,7 +376,8 @@ get_toplvl_escape (struct linereader *lr)
bytes[nbytes++] = byte;
}
- while (ch == lr->escape_char && nbytes < 4);
+ while (ch == lr->escape_char
+ && nbytes < sizeof (lr->token.val.charcode.bytes));
if (!isspace (ch))
lr_error (lr, _("garbage at end of character code specification"));