From e9b805604716304a1eede111789fa383f1cd5fdf Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sun, 19 Mar 2017 13:42:36 +1000 Subject: [PATCH] fix typo --- bbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bbs.c b/bbs.c index 964df77..89c3b2d 100644 --- a/bbs.c +++ b/bbs.c @@ -76,7 +76,7 @@ void broadcast(char *mess, ...) { vsnprintf(buffer, 512, mess, ap); va_end(ap); - snprintf(json, "{\"System\": \"%s\", \"Program\": \"MagickaBBS\", \"Message\": \"%s\"}", conf.bbs_name, buffer); + snprintf(json, 1024, "{\"System\": \"%s\", \"Program\": \"MagickaBBS\", \"Message\": \"%s\"}", conf.bbs_name, buffer); ret = sendto(bcast_sock, json, strlen(json) + 1, 0, (struct sockaddr *)&s, sizeof(struct sockaddr_in));