summaryrefslogtreecommitdiffstats
path: root/src/log.c
diff options
context:
space:
mode:
authorsijanec <anton@sijanec.eu>2021-04-07 23:15:16 +0200
committersijanec <anton@sijanec.eu>2021-04-07 23:15:16 +0200
commita19e3705a228735eacadd713b28d49fe33bb726b (patch)
tree9c5fd6e62a24e7f893686b45da15ecda91b41a58 /src/log.c
parentfuck (diff)
downloadsear.c-a19e3705a228735eacadd713b28d49fe33bb726b.tar
sear.c-a19e3705a228735eacadd713b28d49fe33bb726b.tar.gz
sear.c-a19e3705a228735eacadd713b28d49fe33bb726b.tar.bz2
sear.c-a19e3705a228735eacadd713b28d49fe33bb726b.tar.lz
sear.c-a19e3705a228735eacadd713b28d49fe33bb726b.tar.xz
sear.c-a19e3705a228735eacadd713b28d49fe33bb726b.tar.zst
sear.c-a19e3705a228735eacadd713b28d49fe33bb726b.zip
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/log.c b/src/log.c
index 5e4dc16..6e3fbd0 100644
--- a/src/log.c
+++ b/src/log.c
@@ -32,7 +32,7 @@ int sc_push_log (unsigned char t, struct sc_cache * c, const char * ca, char * f
if (pthread_rwlock_wrlock(lock))
return -3;
if (c->logentries_sizeof <= c->logentries_length)
- SC_BIGGER_ARRAY(c->logentries, sc_logentry);
+ SC_BIGGER_ARRAY(c->logentries, sc_logentry, 1);
c->logentries_length++;
size_t strlenm = strlen(m);
size_t va_count = parse_printf_format(m, 0, NULL);