git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e62c1c
)
s3:lib: Fix size types in ms_fnmatch()
author
Andreas Schneider
<asn@samba.org>
Wed, 21 Mar 2018 10:19:44 +0000
(11:19 +0100)
committer
Jeremy Allison
<jra@samba.org>
Wed, 21 Mar 2018 19:43:19 +0000
(20:43 +0100)
This fixes compilation with -Wstrict-overflow=2
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/ms_fnmatch.c
patch
|
blob
|
history
diff --git
a/source3/lib/ms_fnmatch.c
b/source3/lib/ms_fnmatch.c
index 9763afefe76ece44601ad12fbfc8f11ec8738970..a69407b526716951b4e2559acce87ca11e06e157 100644
(file)
--- 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;