summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-04-30 13:11:49 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-04-30 13:49:44 -0400
commita432cb691ca3c1e18b012cb8e9f6e5654b3652a2 (patch)
tree6962d2971ccc5a95352cba443b9824d7e5558d21
parent27eda16e98ca5763bd505647f974676741917833 (diff)
util: Add _sentinel_ to strextend()
Since it must be NULL terminated.
-rw-r--r--src/shared/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index 5d1b0b1c31..eee66ccf64 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -633,7 +633,7 @@ static inline void *mempset(void *s, int c, size_t n) {
char *hexmem(const void *p, size_t l);
void *unhexmem(const char *p, size_t l);
-char *strextend(char **x, ...);
+char *strextend(char **x, ...) _sentinel_;
char *strrep(const char *s, unsigned n);
void* greedy_realloc(void **p, size_t *allocated, size_t need);