From ddce45ad0e73cfb34e6333c84e76c2e11ab27217 Mon Sep 17 00:00:00 2001 From: "me@ow.nekobit.net" Date: Mon, 4 Apr 2022 02:06:01 +0000 Subject: [PATCH] Fix invalid overwrite size FossilOrigin-Name: b25ab974d331718e5585047e4f711d953deecedfa7cddb21110efcf687cd47e4 --- src/application.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/application.c b/src/application.c index 45dec3b..640b932 100644 --- a/src/application.c +++ b/src/application.c @@ -27,7 +27,8 @@ int mstdnt_app_result(struct mstdnt_fetch_results* results, cJSON* root, *v; /* Zero out */ - memset(storage, 0, sizeof(struct mstdnt_app)); + memset(storage, 0, sizeof(struct mstdnt_storage)); + memset(app, 0, sizeof(struct mstdnt_app)); if (_mstdnt_json_init(&root, results, storage)) return 1;