Commit 409bb932 authored by Shane Snyder's avatar Shane Snyder

bug fix in fopen64 wrapper

The MAP_OR_FAIL macro is resolving fopen rather than fopen64,
causing a NULL function pointer to be executed in the wrapper
in the case of using Darshan's LD_PRELOAD mechanism.
parent 23364187
......@@ -271,7 +271,7 @@ FILE* DARSHAN_DECL(fopen64)(const char *path, const char *mode)
FILE* ret;
double tm1, tm2;
MAP_OR_FAIL(fopen);
MAP_OR_FAIL(fopen64);
tm1 = darshan_core_wtime();
ret = __real_fopen64(path, mode);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment