Fix invalid overwrite size

FossilOrigin-Name: b25ab974d331718e5585047e4f711d953deecedfa7cddb21110efcf687cd47e4
This commit is contained in:
me@ow.nekobit.net 2022-04-04 02:06:01 +00:00
parent 4227067dca
commit ddce45ad0e

View file

@ -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;