diff options
-rw-r--r-- | lib/libc/stdio/printf.3 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdio/printf.3 b/lib/libc/stdio/printf.3 index 100c89e0b45..6a9f4f34942 100644 --- a/lib/libc/stdio/printf.3 +++ b/lib/libc/stdio/printf.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: printf.3,v 1.28 2000/06/25 13:52:30 pjanzen Exp $ +.\" $OpenBSD: printf.3,v 1.29 2000/07/07 00:09:10 aaron Exp $ .\" .\" Copyright (c) 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -692,7 +692,7 @@ as an attacker can put format specifiers in that string to mangle your stack. Be sure to use the proper secure idiom: .Bd -literal -offset indent -snprintf(buffer, sizeof(buffer), "%s", string) +snprintf(buffer, sizeof(buffer), "%s", string); .Ed .Pp There is no way for printf to know the size of each argument passed. |