(peek_token_bracket): Skip the byte already read.
authordrepper <drepper>
Mon, 21 Oct 2002 18:17:15 +0000 (18:17 +0000)
committerdrepper <drepper>
Mon, 21 Oct 2002 18:17:15 +0000 (18:17 +0000)
posix/regcomp.c

index 715dd0f..497d130 100644 (file)
@@ -1690,7 +1690,8 @@ peek_token_bracket (token, input, syntax)
     {
       /* In this case, '\' escape a character.  */
       unsigned char c2;
-      c2 = re_string_peek_byte (input, 1);
+      re_string_skip_bytes (input, 1);
+      c2 = re_string_peek_byte (input, 0);
       token->opr.c = c2;
       token->type = CHARACTER;
       return 1;