From 8892bb3625a1f91f121fd98763a82c2cb0c0f67a Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 19 Feb 2012 01:19:48 +0100 Subject: Remove all usages of bzero() and bcopy() The bzero() and bcopy() functions are deprecated and were removed from the POSIX standard in IEEE Std. 1003.1-2008. Remove all usages of bzero()/bcopy() and replace them by appropriate memset()/memmove() calls. Signed-off-by: Lukas Fleischer --- src/io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/io.c') diff --git a/src/io.c b/src/io.c index 6c981d4..fde4fb9 100644 --- a/src/io.c +++ b/src/io.c @@ -1065,7 +1065,7 @@ get_import_stream (enum export_type type) stream = NULL; stream_name = mem_malloc (BUFSIZ); - bzero (stream_name, BUFSIZ); + memset (stream_name, 0, BUFSIZ); while (stream == NULL) { status_mesg (ask_fname, ""); @@ -1124,7 +1124,7 @@ io_import_data (enum import_type type, char *stream_name) if (stream == NULL) return; - bzero (&stats, sizeof stats); + memset (&stats, 0, sizeof stats); log = io_log_init (); if (log == NULL) -- cgit v1.2.3-54-g00ecf