Fix HTTP request output parsing: Don't read past the curl buffer end
[bpdyndnsd] / src / httphelper.hpp
index abc984a..8f29e9f 100644 (file)
@@ -58,7 +58,7 @@ public:
     void re_initialize();
 
     // libcurl is a C library, so we have to make the callback member function static :-(
-    static size_t http_receive(const char *inBuffer, size_t size, size_t nmemb, std::string *outBuffer);
+    static size_t http_receive(void *inBuffer, size_t size, size_t nmemb, std::string *outBuffer);
 };
 
 #endif