summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorYaniv Kaul <ykaul@redhat.com>2018-08-24 17:24:15 +0300
committerAmar Tumballi <amarts@redhat.com>2018-08-30 05:37:48 +0000
commitd27e8870c1882b1abfffefaf7b40bc7f2a1ec05f (patch)
tree1cc0c618ac506383ed7494e10b9d6682f3db1a4d /api
parentf29e46f97737d9e2d154ba0e99c5ffb1d03eaa57 (diff)
libglusterfs/src/dict.c: allocate memory accurately.
I suspect we've allocated and then set to '\0' an additional byte for no reason: gf_asprintf() allocates enough inc. the terminating null; data->len took that additional byte into account; memcpy() it back took care of that terminating null byte as well. Also, unrelated, implemented str_to_data() via strn_to_data(). Compile-tested only! updates: bz#1193929 Signed-off-by: Yaniv Kaul <ykaul@redhat.com> Change-Id: I32c90e12974f51a0fbc0cfaebf9bd0fd722adc11
Diffstat (limited to 'api')
0 files changed, 0 insertions, 0 deletions