some sprintf()s replaced with wxString::Printf
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -97,12 +97,14 @@ void wxHTTP::SendHeaders()
|
||||
{
|
||||
wxNode *head = m_headers.First();
|
||||
|
||||
while (head) {
|
||||
while (head)
|
||||
{
|
||||
wxString *str = (wxString *)head->Data();
|
||||
char buf[100];
|
||||
|
||||
sprintf(buf, "%s: %s\n\r", head->GetKeyString(), str->GetData());
|
||||
Write(buf, strlen(buf));
|
||||
wxString buf;
|
||||
buf.Printf("%s: %s\n\r", head->GetKeyString(), str->GetData());
|
||||
|
||||
Write(buf, buf.Len());
|
||||
|
||||
head = head->Next();
|
||||
}
|
||||
|
Reference in New Issue
Block a user