From: Karel Zak Date: Fri, 18 Jun 2021 14:33:16 +0000 (+0200) Subject: include/strutils: fix __format__attribute X-Git-Tag: v2.37.1~78 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b22ecdd8407e84b0aaaf65795386cac4a63db3e4;p=thirdparty%2Futil-linux.git include/strutils: fix __format__attribute Reported-by: Jan Pazdziora Signed-off-by: Karel Zak --- diff --git a/include/strutils.h b/include/strutils.h index 2e5a2aad4c..f477687475 100644 --- a/include/strutils.h +++ b/include/strutils.h @@ -362,7 +362,7 @@ static inline void strrem(char *s, int rem) extern char *strnappend(const char *s, const char *suffix, size_t b); extern char *strappend(const char *s, const char *suffix); extern char *strfappend(const char *s, const char *format, ...) - __attribute__ ((__format__ (__printf__, 2, 0))); + __attribute__ ((__format__ (__printf__, 2, 3))); extern const char *split(const char **state, size_t *l, const char *separator, int quoted); extern int skip_fline(FILE *fp);