Fix HTTP request output parsing: Don't read past the curl buffer end
[bpdyndnsd] / src / ip_addr_helper.hpp
index 8615148..c150f39 100644 (file)
@@ -66,7 +66,7 @@ public:
     std::string get_local_wan_nic_ip() const;
 
     // 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);
 
     time_t get_last_webcheck() const;
 };