summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/sprintf.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2003-06-11 21:03:09 +0000
committerderaadt <deraadt@openbsd.org>2003-06-11 21:03:09 +0000
commitf723aa391085d188652b94aedd37f0dd94193fba (patch)
treee126833f2d9fa0dab58a426c7c390de874c0b447 /lib/libc/stdio/sprintf.c
parentsupport for NAT-T (draft-ietf-ipsec-udp-encaps-06.txt); ok deraadt@ (diff)
downloadwireguard-openbsd-f723aa391085d188652b94aedd37f0dd94193fba.tar.xz
wireguard-openbsd-f723aa391085d188652b94aedd37f0dd94193fba.zip
ansification; checked by pval
Diffstat (limited to 'lib/libc/stdio/sprintf.c')
-rw-r--r--lib/libc/stdio/sprintf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/stdio/sprintf.c b/lib/libc/stdio/sprintf.c
index ca59a9c171e..ebeda39755a 100644
--- a/lib/libc/stdio/sprintf.c
+++ b/lib/libc/stdio/sprintf.c
@@ -31,7 +31,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: sprintf.c,v 1.6 2003/06/02 20:18:37 millert Exp $";
+static char rcsid[] = "$OpenBSD: sprintf.c,v 1.7 2003/06/11 21:03:10 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
@@ -39,6 +39,8 @@ static char rcsid[] = "$OpenBSD: sprintf.c,v 1.6 2003/06/02 20:18:37 millert Exp
#include <limits.h>
#include "local.h"
+__warn_references(sprintf, "warning: sprintf() is often misused, please use snprintf()");
+
int
sprintf(char *str, char const *fmt, ...)
{