summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-op-sm.h
diff options
context:
space:
mode:
authorVenky Shankar <venky@gluster.com>2011-08-17 15:19:05 +0530
committerAnand Avati <avati@gluster.com>2011-08-17 21:01:38 -0700
commit2902b6f325d4bbb6cd947cee0301bf75d9634196 (patch)
treeb0e0e5a3a077d3efc54a27d01c3f5329adf3554c /xlators/mgmt/glusterd/src/glusterd-op-sm.h
parent7d15ee5ee37384e40600306e3efbc037ff6f9e9b (diff)
allocate extra bytes (for \0) when calling realloc
We use strcat to concat pathinfo strings. strcat appends a \0 at the end. Therefore allocate extra bytes for the same to avoid asserts being hit during gf_free call Change-Id: I582f5858e7375a5bacfc5c702c612ee09c3bb355 BUG: 3413 Reviewed-on: http://review.gluster.com/249 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amar@gluster.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-op-sm.h')
0 files changed, 0 insertions, 0 deletions