tnc-ifmap: Use proper cast for length when using %.*s
This commit is contained in:
@@ -75,7 +75,7 @@ METHOD(tnc_ifmap_http_t, build, status_t,
|
||||
if (this->user_pass.len)
|
||||
{
|
||||
snprintf(auth, sizeof(auth), "Authorization: Basic %.*s\r\n",
|
||||
this->user_pass.len, this->user_pass.ptr);
|
||||
(int)this->user_pass.len, this->user_pass.ptr);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -90,7 +90,8 @@ METHOD(tnc_ifmap_http_t, build, status_t,
|
||||
"Content-Type: application/soap+xml;charset=utf-8\r\n"
|
||||
"Content-Length: %d\r\n"
|
||||
"\r\n"
|
||||
"%.*s", path, (path-host), host, auth, in->len, in->len, in->ptr);
|
||||
"%.*s", path, (int)(path-host), host, auth, (int)in->len,
|
||||
(int)in->len, in->ptr);
|
||||
free(host);
|
||||
|
||||
if (len == -1)
|
||||
|
||||
Reference in New Issue
Block a user