diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2014-07-25 08:27:30 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2014-07-25 08:27:30 +0200 |
commit | 9ef1dd15551f4a4d126a55d38fccbe568920ad8f (patch) | |
tree | be6594cb0d2074018d3ce355fb4dc2739cba1ca1 | |
parent | 2de653340c789c2ef4b442b146c3f3e53e306c31 (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>
-rw-r--r-- | staging/mausezahn.c | 2 |
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; |