From: Andreas Schneider Date: Wed, 21 Mar 2018 10:19:44 +0000 (+0100) Subject: s3:lib: Fix size types in ms_fnmatch() X-Git-Tag: talloc-2.1.13~304 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e64738b606c815dc98f4ea289f6cd260f03a1975;p=thirdparty%2Fsamba.git s3:lib: Fix size types in ms_fnmatch() This fixes compilation with -Wstrict-overflow=2 Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison --- diff --git a/source3/lib/ms_fnmatch.c b/source3/lib/ms_fnmatch.c index 9763afefe76..a69407b5267 100644 --- a/source3/lib/ms_fnmatch.c +++ b/source3/lib/ms_fnmatch.c @@ -150,7 +150,8 @@ int ms_fnmatch(const char *pattern, const char *string, bool translate_pattern, { smb_ucs2_t *p = NULL; smb_ucs2_t *s = NULL; - int ret, count, i; + int ret; + size_t count, i; struct max_n *max_n = NULL; struct max_n *max_n_free = NULL; struct max_n one_max_n;