summaryrefslogtreecommitdiff
path: root/include/stdio.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/stdio.h')
-rw-r--r--include/stdio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/stdio.h b/include/stdio.h
index d5206f5..5d589f0 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -116,6 +116,7 @@ _FORTIFY_FN(vsprintf) int vsprintf(char * _FORTIFY_POS0 __s, const char *__f,
116 */ 116 */
117 117
118__access(read_write, 1, 2) 118__access(read_write, 1, 2)
119__format(printf, 3, 4)
119_FORTIFY_FN(snprintf) int snprintf(char *__s, size_t __n, 120_FORTIFY_FN(snprintf) int snprintf(char *__s, size_t __n,
120 const char *__f, ...) 121 const char *__f, ...)
121{ 122{
@@ -126,6 +127,7 @@ _FORTIFY_FN(snprintf) int snprintf(char *__s, size_t __n,
126 return __orig_snprintf(__s, __n, __f, __builtin_va_arg_pack()); 127 return __orig_snprintf(__s, __n, __f, __builtin_va_arg_pack());
127} 128}
128 129
130__format(printf, 2, 3)
129_FORTIFY_FN(sprintf) int sprintf(char *__s, const char *__f, ...) 131_FORTIFY_FN(sprintf) int sprintf(char *__s, const char *__f, ...)
130{ 132{
131 size_t __b = __bos(__s, 0); 133 size_t __b = __bos(__s, 0);