summaryrefslogtreecommitdiffstats
path: root/xmalloc.h
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2021-08-25 10:01:10 +0100
committerThomas Adam <thomas@xteddy.org>2021-08-25 10:01:10 +0100
commitc7266ca78d5b9f9645ebbf22530cea85ecf2a584 (patch)
tree16837c6577a96e22e0fcbaaa4e53fdd52df93c44 /xmalloc.h
parent6ac09aa47c7fc03a2a418d4723064c100757a428 (diff)
parentc6d6af49039d7fc3ec14c2240153226709497313 (diff)
Merge branch 'obsd-master' into master
Diffstat (limited to 'xmalloc.h')
-rw-r--r--xmalloc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmalloc.h b/xmalloc.h
index d11d4bf1..26009dd8 100644
--- a/xmalloc.h
+++ b/xmalloc.h
@@ -34,12 +34,14 @@ int xasprintf(char **, const char *, ...)
__attribute__((__format__ (printf, 2, 3)))
__attribute__((__nonnull__ (2)));
int xvasprintf(char **, const char *, va_list)
+ __attribute__((__format__ (printf, 2, 0)))
__attribute__((__nonnull__ (2)));
int xsnprintf(char *, size_t, const char *, ...)
__attribute__((__format__ (printf, 3, 4)))
__attribute__((__nonnull__ (3)))
__attribute__((__bounded__ (__string__, 1, 2)));
int xvsnprintf(char *, size_t, const char *, va_list)
+ __attribute__((__format__ (printf, 3, 0)))
__attribute__((__nonnull__ (3)))
__attribute__((__bounded__ (__string__, 1, 2)));