From a432cb691ca3c1e18b012cb8e9f6e5654b3652a2 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 30 Apr 2013 13:11:49 -0400 Subject: [PATCH] util: Add _sentinel_ to strextend() Since it must be NULL terminated. --- src/shared/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/util.h b/src/shared/util.h index 5d1b0b1c3..eee66ccf6 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); -- 2.30.2