INN commit: trunk/contrib (reset-cnfs.c)
INN Commit
rra at isc.org
Sat May 16 21:02:42 UTC 2020
Date: Saturday, May 16, 2020 @ 14:02:42
Author: iulius
Revision: 10370
Use memset instead of bzero (less portable)
Modified:
trunk/contrib/reset-cnfs.c
--------------+
reset-cnfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Modified: reset-cnfs.c
===================================================================
--- reset-cnfs.c 2020-05-16 21:02:15 UTC (rev 10369)
+++ reset-cnfs.c 2020-05-16 21:02:42 UTC (rev 10370)
@@ -22,7 +22,7 @@
size_t j, numwr;
bool status = true;
- bzero(buf, sizeof(buf));
+ memset(buf, 0, sizeof(buf));
for (i = 1; i < argc; i++) {
#ifdef DO_LARGEFILES
if ((fd = open(argv[i], O_LARGEFILE | O_RDWR, 0664)) < 0) {
More information about the inn-committers
mailing list