Fix usage of PATH_MAX

PATH_MAX includes the NUL byte. So any definition of the form
"char path[MAX_PATH+1]" is incorrect! It should just be "char
path[PATH_MAX]". Changed such definitions!

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Reviewed-by: Frank S. Filz <ffilzlnx@mindspring.com>
Merge branch 'tp/path_max' into ibm_next_2Xmerge_tmp