diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2022-12-08 00:26:46 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2022-12-10 11:58:14 -0500 |
commit | c412bb59ce1488347a9f4d6d55e42de3f8567956 (patch) | |
tree | 0be4efd67374e6856abb35252847c5166a710629 /src/mod_expire.c | |
parent | 0318ef7b64768cc937ee944da445248376793cd3 (diff) | |
download | lighttpd-git-c412bb59ce1488347a9f4d6d55e42de3f8567956.tar.gz |
[multiple] employ ck_realloc_u32() shared code
employ ck_realloc_u32() shared code to slightly reduce code size
Diffstat (limited to 'src/mod_expire.c')
-rw-r--r-- | src/mod_expire.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_expire.c b/src/mod_expire.c index a6c9f486..25da5b46 100644 --- a/src/mod_expire.c +++ b/src/mod_expire.c @@ -227,8 +227,8 @@ SETDEFAULTS_FUNC(mod_expire_set_defaults) { /* parse array values into structured data */ if (NULL != a && a->used) { - p->toffsets = - realloc(p->toffsets, sizeof(time_t) * (p->tused + a->used*2)); + ck_realloc_u32((void **)&p->toffsets, p->tused, + a->used*2, sizeof(*p->toffsets)); time_t *toff = p->toffsets + p->tused; for (uint32_t k = 0; k < a->used; ++k, toff+=2, p->tused+=2) { buffer *v = &((data_string *)a->data[k])->value; |