libmpm

morphux C package management library
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/libmpm

commit 3b0e69ec0d1d88f89db942bae5422b72f1bbf725
parent 900d757faade1336d9f9b0ac987ffed328810d03
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Sun, 16 Apr 2017 17:04:46 +0200

Fix(Packer): Fix a valgrind error

Diffstat:
Msrc/packer.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/packer.c b/src/packer.c @@ -302,7 +302,7 @@ MPX_STATIC bool packer_read_config_deps(packer_t *ctx, struct json_object *obj) if (json_object_get_type(tmp) != json_type_string) goto cleanup; list_add(ctx->header->dependencies->list, (char *)json_object_get_string(tmp), - json_object_get_string_len(tmp)); + json_object_get_string_len(tmp) + 1); } return true;