Here only sizeof void* bytes will be set to zero instead of REPORTLOGBUFSIZE.
It is a good place to use a qvector or std::vector instead.