[Darshan-commits] [Git][darshan/darshan][dev-stdio] fix another sizeof bug

Philip Carns xgitlab at cels.anl.gov
Fri Jun 24 12:32:50 CDT 2016


Philip Carns pushed to branch dev-stdio at darshan / darshan


Commits:
ebb9ba17 by Phil Carns at 2016-06-24T13:32:37-04:00
fix another sizeof bug

- - - - -


1 changed file:

- darshan-runtime/lib/darshan-stdio.c


Changes:

=====================================
darshan-runtime/lib/darshan-stdio.c
=====================================
--- a/darshan-runtime/lib/darshan-stdio.c
+++ b/darshan-runtime/lib/darshan-stdio.c
@@ -229,7 +229,7 @@ static void stdio_cleanup_runtime();
 #define STDIO_RECORD_WRITE(__fp, __bytes,  __tm1, __tm2, __fflush_flag) do{ \
     struct stdio_file_record_ref* rec_ref; \
     int64_t this_offset; \
-    rec_ref = darshan_lookup_record_ref(stdio_runtime->stream_hash, &(__fp), sizeof(int)); \
+    rec_ref = darshan_lookup_record_ref(stdio_runtime->stream_hash, &(__fp), sizeof(__fp)); \
     if(!rec_ref) break; \
     this_offset = rec_ref->offset; \
     rec_ref->offset = this_offset + __bytes; \



View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/commit/ebb9ba175dc3937fdc3bd955f9e966eabf68ecdc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/darshan-commits/attachments/20160624/1b5326c0/attachment.html>


More information about the Darshan-commits mailing list