diff options
Diffstat (limited to 'libglusterfs/src/common-utils.c')
| -rw-r--r-- | libglusterfs/src/common-utils.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/common-utils.c b/libglusterfs/src/common-utils.c index c0884de8a5e..1e77ebe6f29 100644 --- a/libglusterfs/src/common-utils.c +++ b/libglusterfs/src/common-utils.c @@ -2988,7 +2988,7 @@ gf_get_reserved_ports ()                  goto out;          } -        ret = sys_read (proc_fd, buffer, sizeof (buffer)); +        ret = sys_read (proc_fd, buffer, sizeof (buffer)-1);          if (ret < 0) {                  gf_msg ("glusterfs", GF_LOG_WARNING, errno,                          LG_MSG_FILE_OP_FAILED, "could not read the file %s for"  | 
