diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-11 21:05:10 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-11 21:05:10 +0000 |
commit | 3b2c28081a36d98d9659901db54aee6c25c941d8 (patch) | |
tree | a1632ac0731789a8ec0d7c37d3483feb59783a73 | |
parent | 4dba6a5e639357ec5b17c397ad648b7c98e3ba12 (diff) |
oops
-rw-r--r-- | lib/libc/stdio/sprintf.c | 4 | ||||
-rw-r--r-- | lib/libc/stdio/vsprintf.c | 5 |
2 files changed, 2 insertions, 7 deletions
diff --git a/lib/libc/stdio/sprintf.c b/lib/libc/stdio/sprintf.c index ebeda39755a..ba8cc70fe04 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.7 2003/06/11 21:03:10 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: sprintf.c,v 1.8 2003/06/11 21:05:09 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include <stdio.h> @@ -39,8 +39,6 @@ static char rcsid[] = "$OpenBSD: sprintf.c,v 1.7 2003/06/11 21:03:10 deraadt 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, ...) { diff --git a/lib/libc/stdio/vsprintf.c b/lib/libc/stdio/vsprintf.c index e3c099d0fb4..97010c5fc6e 100644 --- a/lib/libc/stdio/vsprintf.c +++ b/lib/libc/stdio/vsprintf.c @@ -31,15 +31,12 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: vsprintf.c,v 1.6 2003/06/11 21:03:10 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: vsprintf.c,v 1.7 2003/06/11 21:05:09 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include <stdio.h> #include <limits.h> -__warn_references(vsprintf, - "warning: vsprintf() is often misused, please use vsnprintf()"); - int vsprintf(str, fmt, ap) char *str; |