diff options
Diffstat (limited to 'src/util/string.cpp')
-rw-r--r-- | src/util/string.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/string.cpp b/src/util/string.cpp index fb39a24c3..215ac299d 100644 --- a/src/util/string.cpp +++ b/src/util/string.cpp @@ -41,3 +41,9 @@ std::string translatePassword(std::string playername, std::wstring password) return pwd; } +size_t curl_write_data(char *ptr, size_t size, size_t nmemb, void *userdata) { + std::ostringstream *stream = (std::ostringstream*)userdata; + size_t count = size * nmemb; + stream->write(ptr, count); + return count; +} |