diff options
Diffstat (limited to 'rpc/block_svc_routines.c')
-rw-r--r-- | rpc/block_svc_routines.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc/block_svc_routines.c b/rpc/block_svc_routines.c index 333584e..9e4d111 100644 --- a/rpc/block_svc_routines.c +++ b/rpc/block_svc_routines.c @@ -134,8 +134,8 @@ removeDuplicateSubstr(char **line) return; } - /* Allocate size for out. */ - if (GB_ALLOC_N(out, strlen(temp)) < 0) { + /* Allocate size for out including trailing space and \0. */ + if (GB_ALLOC_N(out, strlen(temp) + strlen(" ") + 1) < 0) { return; } |