From: Paul Eggert Date: Tue, 30 Aug 2022 22:37:06 +0000 (-0500) Subject: fnmatch: fix stdckdint typo X-Git-Tag: v1.0~2105 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=5064550361cdc26eb2c7aa069da1bedea211f50f;p=gnulib.git 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 --- diff --git a/ChangeLog b/ChangeLog index 904980df7d..8c181a2af1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2022-08-30 Paul Eggert + + 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 tempname: simplify by omitting _LIBC code diff --git a/lib/fnmatch_loop.c b/lib/fnmatch_loop.c index 1b16de99b6..3050f0cdcc 100644 --- a/lib/fnmatch_loop.c +++ b/lib/fnmatch_loop.c @@ -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; \