summaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/X11/IntrinsicI.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/X11/IntrinsicI.h b/include/X11/IntrinsicI.h
index c028701..f3193e0 100644
--- a/include/X11/IntrinsicI.h
+++ b/include/X11/IntrinsicI.h
@@ -114,7 +114,7 @@ SOFTWARE.
}
#define XtBZero(dst, size) \
- bzero((char *) (dst), (size_t) (size))
+ memset((char *) (dst), 0, (size_t) (size))
#define XtMemcmp(b1, b2, size) \
memcmp((char *) (b1), (char *) (b2), (size_t) (size))