Since it must be NULL terminated.
---
 src/shared/util.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


>From 73f531d65356ecf58c945f316ddcee2201078978 Mon Sep 17 00:00:00 2001
From: Colin Walters <[email protected]>
Date: Tue, 30 Apr 2013 13:01:45 -0400
Subject: [PATCH 1/2] util: Add _sentinel_ to strextend()

Since it must be NULL terminated.
---
 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 5d1b0b1..eee66cc 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);
-- 
1.7.1

_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to