MXS-1220: Fix upload data processing
The uploaded data is not a null-terminated string.
This commit is contained in:

committed by
Markus Mäkelä

parent
50eafe19fe
commit
bcc3f11c4b
@ -67,7 +67,7 @@ int Client::process(string url, string method, const char* upload_data, size_t *
|
||||
|
||||
if (*upload_size)
|
||||
{
|
||||
m_data += upload_data;
|
||||
m_data.append(upload_data, *upload_size);
|
||||
*upload_size = 0;
|
||||
return MHD_YES;
|
||||
}
|
||||
|
Reference in New Issue
Block a user