From c50ec4e093e109363a4d2f25dfe386249080325e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 6 Dec 2000 02:40:40 +0000 Subject: [PATCH] (get_toplvl_escape): Recognize more than 4 bytes in escape sequence. --- locale/programs/linereader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/locale/programs/linereader.c b/locale/programs/linereader.c index 4be3701e2b..01f5c9d692 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"));