diff options
author | 2011-05-30 18:48:33 +0000 | |
---|---|---|
committer | 2011-05-30 18:48:33 +0000 | |
commit | b18e690dce4ce381e3ca4984173985d640e8a5f5 (patch) | |
tree | 74b32a351aba7b7cd1c8a5f6058e5cef7cec216b /lib/libc/stdio/sprintf.c | |
parent | Trick lint into recording the right prototypes in the llib-lm.ln (diff) | |
download | wireguard-openbsd-b18e690dce4ce381e3ca4984173985d640e8a5f5.tar.xz wireguard-openbsd-b18e690dce4ce381e3ca4984173985d640e8a5f5.zip |
Make printf-like and scanf-like functions marked as such in llib-lc.ln
and llib-lwrap.ln databases; so that the lint features doing format
strings checks are enabled by default.
Looks good to millert@.
Diffstat (limited to 'lib/libc/stdio/sprintf.c')
-rw-r--r-- | lib/libc/stdio/sprintf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdio/sprintf.c b/lib/libc/stdio/sprintf.c index faa7c73ca20..0ca6b055bad 100644 --- a/lib/libc/stdio/sprintf.c +++ b/lib/libc/stdio/sprintf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sprintf.c,v 1.16 2009/11/09 00:18:27 kurt Exp $ */ +/* $OpenBSD: sprintf.c,v 1.17 2011/05/30 18:48:33 martynas Exp $ */ /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. @@ -42,6 +42,7 @@ __warn_references(sprintf, "warning: sprintf() is often misused, please use snprintf()"); #endif +/* PRINTFLIKE2 */ int sprintf(char *str, const char *fmt, ...) { |