summary refs log tree commit diff
path: root/service.c
diff options
context:
space:
mode:
Diffstat (limited to 'service.c')
-rw-r--r--service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/service.c b/service.c
index c7103f0..5b1d620 100644
--- a/service.c
+++ b/service.c
@@ -82,7 +82,7 @@ int serviceAdd(const char *name, const char *command) {
 
 	if (services.len == services.cap) {
 		size_t cap = (services.cap ? services.cap * 2 : 8);
-		void *ptr = realloc(services.ptr, sizeof(*services.ptr) * cap);
+		void *ptr = reallocarray(services.ptr, cap, sizeof(*services.ptr));
 		if (!ptr) return -1;
 		services.cap = cap;
 		services.ptr = ptr;
span>Factor out IRC formatting parsingJune McEnroe 2018-09-11Add /help equivalent to /manJune McEnroe 2018-09-11Don't render every PM as a pingJune McEnroe 2018-09-11Add urlOpenMatchJune McEnroe 2018-09-10Depend on man.sh for chroot.tar targetJune McEnroe 2018-09-10Set LESSSECURE=1 in man.shJune McEnroe 2018-09-10Add /man commandJune McEnroe 2018-09-10Install man page in chrootJune McEnroe 2018-09-10Install man pageJune McEnroe 2018-09-10Split keys into subsections and document colorsJune McEnroe 2018-09-10Add "blank" lines to chatte.1June McEnroe 2018-09-10Document key bindings in chatte.1June McEnroe 2018-09-08Document slash commands in chatte.1June McEnroe