Cast size_t len arguments to %.*s to int

This commit is contained in:
Martin Willi
2011-04-20 13:08:32 +02:00
parent 52846ec820
commit 4778655726
5 changed files with 23 additions and 21 deletions
+3 -2
View File
@@ -309,8 +309,9 @@ static char* complete_uri(char *distPoint, const char *ldaphost)
char uri[BUF_LEN];
/* insert the ldaphost into the uri */
snprintf(uri, BUF_LEN, "%.*s%s%.*s", strlen(distPoint)-len,
distPoint, ldaphost, len, symbol);
snprintf(uri, BUF_LEN, "%.*s%s%.*s",
(int)strlen(distPoint) - len, distPoint, ldaphost,
len, symbol);
return strdup(uri);
}
}