From 38c5ee4f77c1d837ed8936bad5a3a354701aaed2 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Mon, 18 Mar 2019 05:06:06 -0400 Subject: bzero was marked "legacy" in POSIX 2001, and is not part of the later revisions. Use memset, which is standard (and supported for some 30 years). Signed-off-by: Thomas E. Dickey --- src/Error.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Error.c') diff --git a/src/Error.c b/src/Error.c index 50f6c3c..18a80b5 100644 --- a/src/Error.c +++ b/src/Error.c @@ -251,7 +251,7 @@ static void DefaultMsg ( String par[10]; if (i > 10) i = 10; (void) memmove((char*)par, (char*)params, i * sizeof(String) ); - bzero( &par[i], (10-i) * sizeof(String) ); + memset( &par[i], 0, (10-i) * sizeof(String) ); (void) fprintf (stderr, "%s%s", error ? XTERROR_PREFIX : XTWARNING_PREFIX, error ? "Error: " : "Warning: "); @@ -286,7 +286,7 @@ program as a non-root user or by removing the suid bit on the executable."); String par[10]; if (i > 10) i = 10; (void) memmove((char*)par, (char*)params, i * sizeof(String) ); - bzero( &par[i], (10-i) * sizeof(String) ); + memset( &par[i], 0, (10-i) * sizeof(String) ); if (i != *num_params) XtWarning( "Some arguments in following message were lost" ); /* -- cgit v1.2.3