diff --git a/Source/CPack/cmCPackTGZGenerator.cxx b/Source/CPack/cmCPackTGZGenerator.cxx index 3784a750d..d4663db8c 100644 --- a/Source/CPack/cmCPackTGZGenerator.cxx +++ b/Source/CPack/cmCPackTGZGenerator.cxx @@ -162,7 +162,7 @@ ssize_t cmCPackTGZ_Data_Write(void *client_data, void *buff, size_t n) } else { - mydata->OutputStream->write(buff, n); + mydata->OutputStream->write(reinterpret_cast(buff), n); } return n; }