summaryrefslogtreecommitdiff
path: root/staging
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-07-25 08:27:30 +0200
committerTobias Klauser <tklauser@distanz.ch>2014-07-25 08:27:30 +0200
commit9ef1dd15551f4a4d126a55d38fccbe568920ad8f (patch)
treebe6594cb0d2074018d3ce355fb4dc2739cba1ca1 /staging
parent2de653340c789c2ef4b442b146c3f3e53e306c31 (diff)
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 <tklauser@distanz.ch>
Diffstat (limited to 'staging')
-rw-r--r--staging/mausezahn.c2
1 files changed, 1 insertions, 1 deletions
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<TIME_COUNT_MAX;i++) jitter[i] = 0;