Commit faec83f0 authored by Philip Carns's avatar Philip Carns
Browse files

correct off by one bug in setting up buffers for compression


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@300 3b7491f3-a168-0410-bf4b-c445ed680a29
parent a037a79c
...@@ -1813,8 +1813,7 @@ static char* darshan_get_exe_and_mounts(struct darshan_job_runtime* final_job) ...@@ -1813,8 +1813,7 @@ static char* darshan_get_exe_and_mounts(struct darshan_job_runtime* final_job)
NULL NULL
}; };
/* extra byte for \0 already accounted for */ space_left = CP_EXE_LEN + 1;
space_left = CP_EXE_LEN;
trailing_data = malloc(space_left); trailing_data = malloc(space_left);
if(!trailing_data) if(!trailing_data)
{ {
......
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