update write_data function
This commit is contained in:
1 parent
f5fd4fb37e
commit
2fcd43dd3b
1 file changed
+2
-6
+2
-6
@@ -41,12 +41,8 @@ namespace
|
||||
{
|
||||
size_t write_data(char *buffer, size_t size, size_t nmemb, string data)
|
||||
{
|
||||
int result = 0;
|
||||
if (buffer)
|
||||
{
|
||||
data += buffer;
|
||||
result = size*nmemb;
|
||||
}
|
||||
size_t result = size * nmemb;
|
||||
data.append(buffer, result);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user