summaryrefslogtreecommitdiff
path: root/src/system/dlt-system-syslog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/system/dlt-system-syslog.c')
-rw-r--r--src/system/dlt-system-syslog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/system/dlt-system-syslog.c b/src/system/dlt-system-syslog.c
index 8fe9802..3de06fd 100644
--- a/src/system/dlt-system-syslog.c
+++ b/src/system/dlt-system-syslog.c
@@ -50,7 +50,7 @@
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
-#include <strings.h>
+#include <string.h>
#include <errno.h>
#include "dlt-system.h"
@@ -89,7 +89,7 @@ int init_socket(SyslogOptions opts)
#endif
syslog_addr.sin_port = htons(opts.Port);
syslog_addr.sin_addr.s_addr = INADDR_ANY;
- bzero(&(syslog_addr.sin_zero), 8);
+ memset(&(syslog_addr.sin_zero), 0, 8);
if (bind(sock, (struct sockaddr *)&syslog_addr,
sizeof(struct sockaddr)) == -1) {