From 547413eec3fb33007ed2436175832c1b4a271e87 Mon Sep 17 00:00:00 2001 From: Eugen Tarasov Date: Fri, 31 Jul 2015 21:26:54 +0300 Subject: [PATCH] bzero changed to memset --- lib/sntllv2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/sntllv2.c b/lib/sntllv2.c index 332b0fc..6f0ed45 100644 --- a/lib/sntllv2.c +++ b/lib/sntllv2.c @@ -1059,7 +1059,8 @@ conn_t *connection_link(conn_sys_t *ssys, const char *host, /* create a socket */ sck = socket(PF_INET, SOCK_STREAM, 0); - bzero(&addr, sizeof(addr)); + memset(&addr, 0, sizeof(addr)); + // bzero(&addr, sizeof(addr)); /* try to connect it */ addr.sin_family = AF_INET;