On 12/30/20 12:15 PM, Adhemerval Zanella wrote:
- ssize_t level;
+ size_t level;
'level' should be ptrdiff_t not ssize_t, for portability to
(now-ancient, but still allowed by POSIX) hosts where ssize_t is 32 bits
and size_t is 64 bits.
-CHAR str[];
+CHAR str[FLEXIBLE_ARRAY_MEMB
It sync with gnulib commit 43ee1a6bf with following changes:
--- posix/fnmatch_loop.c
+++ ../../gnulib/gnulib-lib/lib/fnmatch_loop.c
@@ -978,12 +978,12 @@
bool no_leading_period, int flags, size_t alloca_used)
{
const CHAR *startp;
- ssize_t level;
+ size_t level;
struct patternlist