s3:lib: Fix size types in tldap_find_first_star()
authorAndreas Schneider <asn@samba.org>
Wed, 21 Mar 2018 10:24:45 +0000 (11:24 +0100)
committerJeremy 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/tldap.c

index 205a9cf2b06d83a29f7386e3b27209a72e0c05a9..bfb24ee8661097b39497fb600fcbf240b03c4210 100644 (file)
@@ -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++) {