aboutsummaryrefslogtreecommitdiff
path: root/posix/regcomp.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-10-21 18:19:01 +0000
committerUlrich Drepper <drepper@redhat.com>2002-10-21 18:19:01 +0000
commit82bbb29edd37e2f74a50afb1895dcb3014a7b63e (patch)
tree8f5175b9b530cd55f7d0b566e29673f1f3c27ffa /posix/regcomp.c
parent9bc17809feddc0a37df95cd1595c71a35d32635e (diff)
downloadglibc-82bbb29edd37e2f74a50afb1895dcb3014a7b63e.tar
glibc-82bbb29edd37e2f74a50afb1895dcb3014a7b63e.tar.gz
glibc-82bbb29edd37e2f74a50afb1895dcb3014a7b63e.tar.bz2
glibc-82bbb29edd37e2f74a50afb1895dcb3014a7b63e.zip
Update.
2002-10-21 Isamu Hasegawa <isamu@yamato.ibm.com> * posix/Makefile: Add a test case for the bug reported by Aharon Robbins <arnold@skeeve.com>. * posix/bug-regex13.c: New file. * posix/regcomp.c (peek_token_bracket): Skip the byte already read. 2002-10-21 Ulrich Drepper <drepper@redhat.com> * csu/gmon-start.c: Pretty printing. * configure.in: Replace obsolete AC_OUTPUT syntax with AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and new-type AC_OUTPUT trio. * aclocal.m4 (GLIBC_PROVIDES): Add AC_PROVIDEs for * configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD. * sysdeps/alpha/elf/configure.in: Likewise. * sysdeps/i386/elf/configure.in: Likewise. * sysdeps/mach/hurd/configure.in: Likewise. * sysdeps/x86_64/elf/configure.in: Likewise. * sysdeps/alpha/elf/configure.in: Remove unneeded sinclude statement. * sysdeps/generic/configure.in: Likewise. * sysdeps/i386/elf/configure.in: Likewise. * sysdeps/ia64/elf/configure.in: Likewise. * sysdeps/mach/configure.in: Likewise. * sysdeps/mach/hurd/configure.in: Likewise. * sysdeps/unix/configure.in: Likewise. * sysdeps/unix/common/configure.in: Likewise. * sysdeps/unix/sysv/aix/configure.in: Likewise. * sysdeps/unix/sysv/linux/configure.in: Likewise. * sysdeps/unix/sysv/linux/mips/configure.in: Likewise. * sysdeps/x86_64/elf/configure.in: Likewise.
Diffstat (limited to 'posix/regcomp.c')
-rw-r--r--posix/regcomp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/posix/regcomp.c b/posix/regcomp.c
index 715dd0f9a1..497d1301df 100644
--- a/posix/regcomp.c
+++ b/posix/regcomp.c
@@ -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;