From 9ef1dd15551f4a4d126a55d38fccbe568920ad8f Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 25 Jul 2014 08:27:30 +0200 Subject: mausezahn: Increase buffer size for listen address string Commit 2de653340c ("mausezahn: bind to IP address in interactive mode") introduced mz_listen_addr of size 15 to hold the IP address to bind to. Since an address can be maximum 15 characters long, this doesn't account for the terminating '\0'. Fix this by increasing the buffer size to 16. Signed-off-by: Tobias Klauser --- staging/mausezahn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'staging') diff --git a/staging/mausezahn.c b/staging/mausezahn.c index 8b2c499..0c0296e 100644 --- a/staging/mausezahn.c +++ b/staging/mausezahn.c @@ -209,7 +209,7 @@ int reset() fp2 = NULL; mz_port = 0; mz_rand = 0; - char mz_listen_addr[15] = "0.0.0.0"; + char mz_listen_addr[16] = "0.0.0.0"; mp_head = NULL; for (i=0;i