summaryrefslogtreecommitdiff
path: root/src/Error.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-03-18 05:06:06 -0400
committerAdam Jackson <ajax@nwnk.net>2019-04-02 19:17:16 +0000
commit38c5ee4f77c1d837ed8936bad5a3a354701aaed2 (patch)
treecd0a771068f2ce1df879daa90ea06d6bb25c632b /src/Error.c
parent91c08f4d9cb915d5f7c3074db3e72ad15ec14c01 (diff)
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 <dickey@invisible-island.net>
Diffstat (limited to 'src/Error.c')
-rw-r--r--src/Error.c4
1 files changed, 2 insertions, 2 deletions
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" );
/*