Module Name: src
Committed By: sevan
Date: Thu Aug 4 16:36:46 UTC 2016
Modified Files:
src/lib/libc/string: memset.3
Log Message:
Grammar
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libc/string/memset.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/string/memset.3
diff -u src/lib/libc/string/memset.3:1.12 src/lib/libc/string/memset.3:1.13
--- src/lib/libc/string/memset.3:1.12 Mon Jun 24 07:56:49 2013
+++ src/lib/libc/string/memset.3 Thu Aug 4 16:36:45 2016
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)memset.3 8.1 (Berkeley) 6/4/93
-.\" $NetBSD: memset.3,v 1.12 2013/06/24 07:56:49 wiz Exp $
+.\" $NetBSD: memset.3,v 1.13 2016/08/04 16:36:45 sevan Exp $
.\"
.Dd June 23, 2013
.Dt MEMSET 3
@@ -64,7 +64,7 @@ returns the original value of
Note that the compiler may optimize away a call to
.Fn memset
if it can prove that the string will not be used by the program again,
-for example if it is allocated on the stack and about to out of scope.
+for example if it is allocated on the stack and about to go out of scope.
If you want to guarantee that zeros are written to memory, for example
to sanitize a buffer holding a cryptographic secret, use
.Xr explicit_memset 3 .