]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
alloc-util: drop _alloc_ decorator from memdup_suffix0()
authorLennart Poettering <lennart@poettering.net>
Fri, 12 Jul 2019 15:09:09 +0000 (17:09 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 13 Jul 2019 09:04:20 +0000 (11:04 +0200)
Fixes: https://github.com/systemd/systemd/pull/13034#issuecomment-510801671
src/basic/alloc-util.h

index cffc737d03ae1896d5993a58de707ca6264b1b8c..64d9e00315e5550a3a3baa8aa4632709159e5e86 100644 (file)
@@ -58,7 +58,7 @@ static inline void *mfree(void *memory) {
         })
 
 void* memdup(const void *p, size_t l) _alloc_(2);
-void* memdup_suffix0(const void *p, size_t l) _alloc_(2);
+void* memdup_suffix0(const void *p, size_t l); /* We can't use _alloc_() here, since we return a buffer one byte larger than the specified size */
 
 #define memdupa(p, l)                           \
         ({                                      \