2003-04-07 Jakub Jelinek <jakub@redhat.com>
authorRoland McGrath <roland@gnu.org>
Tue, 8 Apr 2003 01:23:29 +0000 (01:23 +0000)
committerRoland McGrath <roland@gnu.org>
Tue, 8 Apr 2003 01:23:29 +0000 (01:23 +0000)
* posix/bug-regex4.c (main): Cap RANGE and STOP arguments to
sum of SIZE1 and SIZE2 arguments.

posix/bug-regex4.c

index 317a678..0bac3ec 100644 (file)
@@ -43,9 +43,9 @@ main (void)
     }
   else
     {
-      match[0] = re_search_2 (&regex, "xyabez", 6, "", 0, 1, 9, NULL, 10);
+      match[0] = re_search_2 (&regex, "xyabez", 6, "", 0, 1, 5, NULL, 6);
       match[1] = re_search_2 (&regex, NULL, 0, "abc", 3, 0, 3, NULL, 3);
-      match[2] = re_search_2 (&regex, "xya", 3, "bd", 2, 2, 6, NULL, 8);
+      match[2] = re_search_2 (&regex, "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",