Use correct sizeof in memset

This commit is contained in:
Richard Berger
2021-10-27 17:00:31 -04:00
parent 153e77864d
commit 9424571ce2

View File

@ -269,7 +269,7 @@ void WriteRestart::write(const std::string &file)
double *buf;
memory->create(buf,max_size,"write_restart:buf");
memset(buf,0,max_size*sizeof(buf));
memset(buf,0,max_size*sizeof(double));
// all procs write file layout info which may include per-proc sizes