diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-05-08 17:12:19 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-05-08 17:12:19 -0400 |
commit | 0e316817de893e3af63ac7f92f4154e9fb3c21af (patch) | |
tree | 572b68d38cc37e6df467be4cb5402367fac9012c | |
parent | cc7b66254ea2d00e27555ef420764343e8d5430c (diff) | |
download | ohmycal-0e316817de893e3af63ac7f92f4154e9fb3c21af.tar.gz |
Fix invalid size for tpl_pool_func
-rw-r--r-- | src/template.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/template.c b/src/template.c index 58240de..6101338 100644 --- a/src/template.c +++ b/src/template.c @@ -22,7 +22,7 @@ struct tplfunc_frame *tpl_pool_func[1024] = {0}; void tpl_register_func(char *key, struct tplfunc_frame *frame) { (void) key; // TODO: placeholder - tpl_pool_func[tpl_pool_func_used] = calloc(1, sizeof(tpl_pool_func[tpl_pool_func_used])); + tpl_pool_func[tpl_pool_func_used] = calloc(1, sizeof(*tpl_pool_func[tpl_pool_func_used])); memcpy(tpl_pool_func[tpl_pool_func_used], frame, sizeof(*frame)); tpl_pool_func_used++; } |