From ac6c6442559821c10f6658fe30190bdf6a30cf55 Mon Sep 17 00:00:00 2001 From: Shane Snyder Date: Fri, 22 Jan 2016 10:08:27 -0600 Subject: [PATCH] bug fix in darshan put_header routine --- darshan-util/darshan-logutils.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/darshan-util/darshan-logutils.c b/darshan-util/darshan-logutils.c index 9e5dfb8..fd34eb1 100644 --- a/darshan-util/darshan-logutils.c +++ b/darshan-util/darshan-logutils.c @@ -967,10 +967,9 @@ static int darshan_log_putheader(darshan_fd fd) header.magic_nr = DARSHAN_MAGIC_NR; header.comp_type = fd->comp_type; header.partial_flag = fd->partial_flag; - - /* copy the mapping information to the header */ memcpy(&header.rec_map, &fd->rec_map, sizeof(struct darshan_log_map)); - memcpy(&header.mod_map, &fd->mod_map, DARSHAN_MAX_MODS * sizeof(struct darshan_log_map)); + memcpy(header.mod_map, fd->mod_map, DARSHAN_MAX_MODS * sizeof(struct darshan_log_map)); + memcpy(header.mod_ver, fd->mod_ver, DARSHAN_MAX_MODS * sizeof(uint32_t)); /* write header to file */ ret = darshan_log_write(fd, &header, sizeof(header)); -- 2.26.2