Update.
authorUlrich Drepper <drepper@redhat.com>
Fri, 14 Nov 2003 18:17:12 +0000 (18:17 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 14 Nov 2003 18:17:12 +0000 (18:17 +0000)
2003-11-14  Jakub Jelinek  <jakub@redhat.com>

* posix/tst-rxspencer.c (check_match): @ without any following
characters must match only end of string.
(main): Fix filename in error message.

ChangeLog
posix/tst-rxspencer.c

index 467b0c6..8aaed91 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-11-14  Jakub Jelinek  <jakub@redhat.com>
+
+       * posix/tst-rxspencer.c (check_match): @ without any following
+       characters must match only end of string.
+       (main): Fix filename in error message.
+
 2003-11-12  David Mosberger  <davidm@hpl.hp.com>
 
        * sysdeps/ia64/dl-machine.h: Force inlining of
index a04791c..cddb228 100644 (file)
@@ -184,7 +184,7 @@ check_match (regmatch_t *rm, int idx, const char *string,
          return 1;
        }
 
-      if (strncmp (string + rm[idx].rm_so, match + 1, strlen (match + 1)))
+      if (strncmp (string + rm[idx].rm_so, match + 1, strlen (match + 1) ?: 1))
        {
          printf ("%s rm[%d] not matching %s\n", fail, idx, match);
          return 1;
@@ -395,7 +395,7 @@ main (int argc, char **argv)
   f = fopen (argv[optind], "r");
   if (f == NULL)
     {
-      fprintf (stderr, "Couldn't open %s\n", argv[1]);
+      fprintf (stderr, "Couldn't open %s\n", argv[optind]);
       return 1;
     }