From 9424571ce2582ea81403e3590f792e16ddb66f3a Mon Sep 17 00:00:00 2001 From: Richard Berger Date: Wed, 27 Oct 2021 17:00:31 -0400 Subject: [PATCH] Use correct sizeof in memset --- src/write_restart.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/write_restart.cpp b/src/write_restart.cpp index 4333fa5416..e9be7f9c36 100644 --- a/src/write_restart.cpp +++ b/src/write_restart.cpp @@ -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