summary refs log tree commit diff
path: root/bounce.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-10-29 23:04:58 -0400
committerJune McEnroe <june@causal.agency>2019-10-29 23:04:58 -0400
commiteeac134e697f77d85ecbb8d6bd572a4b592433aa (patch)
tree611c18cdc27f146aa96ec3f5c652dd4fc0466ea2 /bounce.c
parentDo not duplicate origin on nick change (diff)
downloadpounce-eeac134e697f77d85ecbb8d6bd572a4b592433aa.tar.gz
pounce-eeac134e697f77d85ecbb8d6bd572a4b592433aa.zip
Allocate ring buffer at runtime
Diffstat (limited to '')
-rw-r--r--bounce.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bounce.c b/bounce.c
index 79a75f2..2a7acd4 100644
--- a/bounce.c
+++ b/bounce.c
@@ -180,11 +180,11 @@ int main(int argc, char *argv[]) {
 	if (!user) user = nick;
 	if (!real) real = nick;
 
+	ringAlloc(4096);
 	if (save) saveLoad(save);
 
-	listenConfig(certPath, privPath);
-
 	int bind[8];
+	listenConfig(certPath, privPath);
 	size_t binds = listenBind(bind, 8, bindHost, bindPort);
 
 	int server = serverConnect(insecure, host, port);