diff options
author | Roland McGrath <roland@gnu.org> | 2003-04-08 01:23:29 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2003-04-08 01:23:29 +0000 |
commit | 55ff096953426f919f34628e2c1fb39723328889 (patch) | |
tree | c6d42104a025a8833c53d2518f4a9e55ad58c96b /posix/bug-regex4.c | |
parent | 87a6784eeb16a2b369f6abce97fa70dfb250fbcf (diff) | |
download | glibc-55ff096953426f919f34628e2c1fb39723328889.tar.gz glibc-55ff096953426f919f34628e2c1fb39723328889.tar.xz glibc-55ff096953426f919f34628e2c1fb39723328889.zip |
2003-04-07 Jakub Jelinek <jakub@redhat.com>
* posix/bug-regex4.c (main): Cap RANGE and STOP arguments to sum of SIZE1 and SIZE2 arguments.
Diffstat (limited to 'posix/bug-regex4.c')
-rw-r--r-- | posix/bug-regex4.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/posix/bug-regex4.c b/posix/bug-regex4.c index 317a678c0c..0bac3ec518 100644 --- a/posix/bug-regex4.c +++ b/posix/bug-regex4.c @@ -43,9 +43,9 @@ main (void) } else { - match[0] = re_search_2 (®ex, "xyabez", 6, "", 0, 1, 9, NULL, 10); + match[0] = re_search_2 (®ex, "xyabez", 6, "", 0, 1, 5, NULL, 6); match[1] = re_search_2 (®ex, NULL, 0, "abc", 3, 0, 3, NULL, 3); - match[2] = re_search_2 (®ex, "xya", 3, "bd", 2, 2, 6, NULL, 8); + match[2] = re_search_2 (®ex, "xya", 3, "bd", 2, 2, 3, NULL, 5); if (match[0] != 2 || match[1] != 0 || match[2] != 2) { printf ("re_search_2 returned %d,%d,%d, expected 2,0,2\n", |