-.\" $OpenBSD: printf.3,v 1.67 2014/04/22 15:22:04 sobrado Exp $
+.\" $OpenBSD: printf.3,v 1.68 2014/05/09 05:14:17 deraadt Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
.\" @(#)printf.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: April 22 2014 $
+.Dd $Mdocdate: May 9 2014 $
.Dt PRINTF 3
.Os
.Sh NAME
.Pp
Be sure to use the proper secure idiom:
.Bd -literal -offset indent
-ret = snprintf(buffer, sizeof(buffer), "%s", string);
+int ret = snprintf(buffer, sizeof(buffer), "%s", string);
if (ret == -1 || ret >= sizeof(buffer))
goto toolong;
.Ed