diff options
author | David Hill <dhill@cvs.openbsd.org> | 2019-03-04 01:06:49 +0000 |
---|---|---|
committer | David Hill <dhill@cvs.openbsd.org> | 2019-03-04 01:06:49 +0000 |
commit | 7448a763819a2e0b9d37eeeeff1a9eb7c5369462 (patch) | |
tree | 07ca4c9609f8471fbaf55261ad79fc31b9ea62dc /sys | |
parent | ddec4266c130008eb54fae6ea53587fa10d5533a (diff) |
Make sure we clear all valid bytes in clrbuf.
ok deraadt@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/buf.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/buf.h b/sys/sys/buf.h index b468a9ef883..0097b792315 100644 --- a/sys/sys/buf.h +++ b/sys/sys/buf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: buf.h,v 1.107 2018/08/13 15:26:17 visa Exp $ */ +/* $OpenBSD: buf.h,v 1.108 2019/03/04 01:06:48 dhill Exp $ */ /* $NetBSD: buf.h,v 1.25 1997/04/09 21:12:17 mycroft Exp $ */ /* @@ -229,7 +229,7 @@ struct bufcache { * Zero out the buffer's data area. */ #define clrbuf(bp) { \ - bzero((bp)->b_data, (u_int)(bp)->b_bcount); \ + bzero((bp)->b_data, (bp)->b_bcount); \ (bp)->b_resid = 0; \ } |