diff --git a/indra/newview/llxmlrpclistener.cpp b/indra/newview/llxmlrpclistener.cpp
index 8a43c30068a620bfb7d62e49d5f4c8e403d44f15..4401f6105986596735b76718fba310a3f815a852 100644
--- a/indra/newview/llxmlrpclistener.cpp
+++ b/indra/newview/llxmlrpclistener.cpp
@@ -440,7 +440,7 @@ class Poller
 
                         LLSD::Binary data;
                         data.resize(len);
-                        memcpy(&data[0], buf, len);
+                        memcpy((void*)&data[0], (void*)buf, len);
                         responses.insert(key, data);
                     }
                     else