diff options
author | Colin Walters <walters@verbum.org> | 2013-04-30 13:11:49 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-04-30 13:49:44 -0400 |
commit | a432cb691ca3c1e18b012cb8e9f6e5654b3652a2 (patch) | |
tree | 6962d2971ccc5a95352cba443b9824d7e5558d21 /src/shared/util.h | |
parent | 27eda16e98ca5763bd505647f974676741917833 (diff) |
util: Add _sentinel_ to strextend()
Since it must be NULL terminated.
Diffstat (limited to 'src/shared/util.h')
-rw-r--r-- | src/shared/util.h | 2 |
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); |