(get_toplvl_escape): Recognize more than 4 bytes in escape sequence.

This commit is contained in:
Ulrich Drepper 2000-12-06 02:40:40 +00:00
parent d32ffbece9
commit c50ec4e093

View File

@ -376,7 +376,8 @@ get_toplvl_escape (struct linereader *lr)
bytes[nbytes++] = byte; 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)) if (!isspace (ch))
lr_error (lr, _("garbage at end of character code specification")); lr_error (lr, _("garbage at end of character code specification"));