diff options
Diffstat (limited to 'glusterfsd/src/glusterfsd.c')
| -rw-r--r-- | glusterfsd/src/glusterfsd.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c index 01d155a2d..13217836c 100644 --- a/glusterfsd/src/glusterfsd.c +++ b/glusterfsd/src/glusterfsd.c @@ -348,7 +348,7 @@ gf_remember_xlator_option (struct list_head *options, char *arg)          if (!dot)                  goto out; -        option->volume = GF_CALLOC ((dot - arg), sizeof (char), +        option->volume = GF_CALLOC ((dot - arg) + 1, sizeof (char),                                      gfd_mt_char);          strncpy (option->volume, arg, (dot - arg)); @@ -356,7 +356,7 @@ gf_remember_xlator_option (struct list_head *options, char *arg)          if (!equals)                  goto out; -        option->key = GF_CALLOC ((equals - dot), sizeof (char), +        option->key = GF_CALLOC ((equals - dot) + 1, sizeof (char),                                   gfd_mt_char);          strncpy (option->key, dot + 1, (equals - dot - 1));  | 
