summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/xmalloc.h
diff options
context:
space:
mode:
authorxsa <xsa@openbsd.org>2007-01-29 16:22:29 +0000
committerxsa <xsa@openbsd.org>2007-01-29 16:22:29 +0000
commit005d0989509df1c659c8b3acaa15cefeac75e66a (patch)
tree86505d7150b82d2a481ac03cc7aa65841f48822c /usr.bin/cvs/xmalloc.h
parentno longer spit out that you can add new files using 'cvs add', (diff)
downloadwireguard-openbsd-005d0989509df1c659c8b3acaa15cefeac75e66a.tar.xz
wireguard-openbsd-005d0989509df1c659c8b3acaa15cefeac75e66a.zip
introduce xsnprintf(); OK otto@ joris@.
Diffstat (limited to 'usr.bin/cvs/xmalloc.h')
-rw-r--r--usr.bin/cvs/xmalloc.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/cvs/xmalloc.h b/usr.bin/cvs/xmalloc.h
index 736666950d2..54b39dce9bd 100644
--- a/usr.bin/cvs/xmalloc.h
+++ b/usr.bin/cvs/xmalloc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: xmalloc.h,v 1.2 2006/03/28 02:13:44 ray Exp $ */
+/* $OpenBSD: xmalloc.h,v 1.3 2007/01/29 16:22:29 xsa Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -27,5 +27,9 @@ char *xstrdup(const char *);
int xasprintf(char **, const char *, ...)
__attribute__((__format__ (printf, 2, 3)))
__attribute__((__nonnull__ (2)));
+int xsnprintf(char *, size_t, const char *, ...)
+ __attribute__((__format__ (printf, 3, 4)))
+ __attribute__((__nonnull__ (3)))
+ __attribute__((__bounded__ (__string__,1,2)));
-#endif /* XMALLOC_H */
+#endif /* XMALLOC_H */