Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed Off-by-one error in gethostname()
MAX_HOSTNAME_LEN is the maximum total characters of the hostname not including the end of string character '\0'. If the hostname happens to be 64 characters long, gethostname() would return an error and shmem_runtime_util_put_hostname() would state error "gethostname failed (-1)" Changed length to MAX_HOSTNAME_LEN+1 Issue Sandia-OpenSHMEM#1159 Signed-off-by: Mark F. Brown <[email protected]>
- Loading branch information