summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/xmalloc.h
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2016-11-17 10:06:08 +0000
committernicm <nicm@openbsd.org>2016-11-17 10:06:08 +0000
commit700b11ff8d317b85df756fd489cd2e4d1d6e5baf (patch)
treeb8054bafc0f5e8b9886e00ba9ef4176d3ea25a0b /usr.bin/tmux/xmalloc.h
parentAdd ofp_validate() for all supported versions. Will be used by switchctl, (diff)
downloadwireguard-openbsd-700b11ff8d317b85df756fd489cd2e4d1d6e5baf.tar.xz
wireguard-openbsd-700b11ff8d317b85df756fd489cd2e4d1d6e5baf.zip
Key running commands for #() by the unexpanded command, and run them
again if the expanded form changes (otherwise at most once per second as usual). Fixes issues reported by Gregory Pakosz.
Diffstat (limited to 'usr.bin/tmux/xmalloc.h')
-rw-r--r--usr.bin/tmux/xmalloc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/xmalloc.h b/usr.bin/tmux/xmalloc.h
index 6d30e3cfdab..76d93a26fc3 100644
--- a/usr.bin/tmux/xmalloc.h
+++ b/usr.bin/tmux/xmalloc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: xmalloc.h,v 1.1 2015/11/18 13:06:54 nicm Exp $ */
+/* $OpenBSD: xmalloc.h,v 1.2 2016/11/17 10:06:08 nicm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -24,6 +24,7 @@ void *xcalloc(size_t, size_t);
void *xrealloc(void *, size_t);
void *xreallocarray(void *, size_t, size_t);
char *xstrdup(const char *);
+char *xstrndup(const char *, size_t);
int xasprintf(char **, const char *, ...)
__attribute__((__format__ (printf, 2, 3)))
__attribute__((__nonnull__ (2)));