From 40b55f5a29343cd477688676f094f10750e3f2de Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 18 Jun 2021 16:33:16 +0200 Subject: [PATCH] include/strutils: fix __format__attribute Reported-by: Jan Pazdziora Signed-off-by: Karel Zak --- include/strutils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/strutils.h b/include/strutils.h index a62f72493..e75a2f0e1 100644 --- a/include/strutils.h +++ b/include/strutils.h @@ -373,7 +373,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);