summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2005-11-24 15:35:12 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2005-11-24 15:35:12 +0000
commit7b69e8c06a7f2c7806348dd3b4d22033479bbc11 (patch)
tree01e782d6a3055a5e311fed15f87116e2224851bf /usr.bin
parent6a37e78bbf365a5ca60e16e9a8b8d05bdd4b4ef2 (diff)
memset();
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/rcs/ci.c4
-rw-r--r--usr.bin/rcs/co.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/rcs/ci.c b/usr.bin/rcs/ci.c
index c26ae4667af..dd1e46960ef 100644
--- a/usr.bin/rcs/ci.c
+++ b/usr.bin/rcs/ci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ci.c,v 1.68 2005/11/23 14:21:53 xsa Exp $ */
+/* $OpenBSD: ci.c,v 1.69 2005/11/24 15:35:11 xsa Exp $ */
/*
* Copyright (c) 2005 Niall O'Higgins <niallo@openbsd.org>
* All rights reserved.
@@ -822,7 +822,7 @@ checkin_choose_rcsfile(const char *filename)
strlcat(basepath, RCS_FILE_EXT, MAXPATHLEN);
} else {
/* <path>/<filename>,v */
- bzero(basepath, MAXPATHLEN);
+ memset(basepath, '\0', MAXPATHLEN);
strlcpy(basepath, fullpath, len);
strlcat(basepath, filename, MAXPATHLEN);
strlcat(basepath, RCS_FILE_EXT, MAXPATHLEN);
diff --git a/usr.bin/rcs/co.c b/usr.bin/rcs/co.c
index 5d24a45bc0f..1e3f7e42201 100644
--- a/usr.bin/rcs/co.c
+++ b/usr.bin/rcs/co.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: co.c,v 1.35 2005/11/23 13:59:07 xsa Exp $ */
+/* $OpenBSD: co.c,v 1.36 2005/11/24 15:35:11 xsa Exp $ */
/*
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
* All rights reserved.
@@ -281,7 +281,7 @@ checkout_rev(RCSFILE *file, RCSNUM *frev, const char *dst, int flags,
cvs_buf_free(bp);
if (flags & CO_REVDATE) {
struct timeval tv[2];
- bzero(&tv, sizeof(tv));
+ memset(&tv, 0, sizeof(tv));
tv[0].tv_sec = (long)rcs_rev_getdate(file, frev);
tv[1].tv_sec = tv[0].tv_sec;
if (utimes(dst, (const struct timeval *)&tv) < 0)