summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--honeypot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/honeypot.c b/honeypot.c
index 3075cab..34292e6 100644
--- a/honeypot.c
+++ b/honeypot.c
@@ -285,7 +285,7 @@ void negotiate_telnet()
/* Various pieces for the telnet communication */
char sb[1024];
unsigned char opt, i;
- memset(sb, 0, 1024);
+ memset(sb, 0, sizeof(sb));
/* Set the default options. */