]> Savannah Git Hosting - gnulib.git/commitdiff
fnmatch: fix stdckdint typo
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 30 Aug 2022 22:37:06 +0000 (17:37 -0500)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 30 Aug 2022 22:37:39 +0000 (17:37 -0500)
* lib/fnmatch_loop.c (NEW_PATTERN): Fix typo in previous patch.
Problem and fix reported by Simon Josefsson in:
https://lists.gnu.org/r/bug-gnulib/2022-08/msg00104.html

ChangeLog
lib/fnmatch_loop.c

index 904980df7dac6c3bd1a13054ef15e7ce93d7cf11..8c181a2af1dcb1cca64f52a969b565592b732652 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2022-08-30  Paul Eggert  <eggert@cs.ucla.edu>
+
+       fnmatch: fix stdckdint typo
+       * lib/fnmatch_loop.c (NEW_PATTERN): Fix typo in previous patch.
+       Problem and fix reported by Simon Josefsson in:
+       https://lists.gnu.org/r/bug-gnulib/2022-08/msg00104.html
+
 2022-08-25  Paul Eggert  <eggert@cs.ucla.edu>
 
        tempname: simplify by omitting _LIBC code
index 1b16de99b697c8572421735620278fda00cba1bb..3050f0cdcc2193e7126ce563fe9672137bbc6ce2 100644 (file)
@@ -1039,7 +1039,7 @@ EXT (INT opt, const CHAR *pattern, const CHAR *string, const CHAR *string_end,
             idx_t slen = FLEXSIZEOF (struct patternlist, str, 0);             \
             idx_t new_used = alloca_used + slen;                              \
             idx_t plensize;                                                   \
-            if (ckd_mul (&plensize, plen, sizeof (CHAR), &plensize)           \
+            if (ckd_mul (&plensize, plen, sizeof (CHAR))                      \
                 || ckd_add (&new_used, new_used, plensize))                   \
               {                                                               \
                 retval = -2;                                                  \