From: Andreas Schneider Date: Wed, 21 Mar 2018 10:24:45 +0000 (+0100) Subject: s3:lib: Fix size types in tldap_find_first_star() X-Git-Tag: talloc-2.1.13~303 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b70bb81a191f57612b877564bcf2bae3ecdd1c24;p=thirdparty%2Fsamba.git s3:lib: Fix size types in tldap_find_first_star() This fixes compilation with -Wstrict-overflow=2 Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison --- diff --git a/source3/lib/tldap.c b/source3/lib/tldap.c index 205a9cf2b06..bfb24ee8661 100644 --- a/source3/lib/tldap.c +++ b/source3/lib/tldap.c @@ -1262,7 +1262,8 @@ static bool tldap_find_first_star(const char *val, const char **star) static bool tldap_unescape_inplace(char *value, size_t *val_len) { - int c, i, p; + int c; + size_t i, p; for (i = 0,p = 0; i < *val_len; i++) {