Compare commits
1 Commits
5575a50a32
...
b64702260f
| Author | SHA1 | Date | |
|---|---|---|---|
| b64702260f |
@@ -252,7 +252,7 @@ XmlRpcClient::generateHeader(std::string const& body)
|
||||
header += buff;
|
||||
header += "Content-Type: text/xml\r\nContent-length: ";
|
||||
|
||||
sprintf(buff,"%d\r\n\r\n", body.size());
|
||||
sprintf(buff,"%d\r\n\r\n", (int)body.size());
|
||||
|
||||
return header + buff;
|
||||
}
|
||||
|
||||
@@ -348,7 +348,7 @@ XmlRpcServerConnection::generateHeader(std::string const& body)
|
||||
"Content-length: ";
|
||||
|
||||
char buffLen[40];
|
||||
sprintf(buffLen,"%d\r\n\r\n", body.size());
|
||||
sprintf(buffLen,"%d\r\n\r\n", (int)body.size());
|
||||
|
||||
return header + buffLen;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user