diff options
-rw-r--r-- | networking/telnet.c | 2 | ||||
-rw-r--r-- | telnet.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/networking/telnet.c b/networking/telnet.c index 758cce8b1..d47bf699b 100644 --- a/networking/telnet.c +++ b/networking/telnet.c @@ -612,7 +612,7 @@ static int create_socket() static void setup_sockaddr_in(struct sockaddr_in * addr, int port) { - memset(addr, 0, sizeof addr); + memset(addr, 0, sizeof(struct sockaddr_in)); addr->sin_family = AF_INET; addr->sin_port = htons(port); } @@ -612,7 +612,7 @@ static int create_socket() static void setup_sockaddr_in(struct sockaddr_in * addr, int port) { - memset(addr, 0, sizeof addr); + memset(addr, 0, sizeof(struct sockaddr_in)); addr->sin_family = AF_INET; addr->sin_port = htons(port); } |