]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
include/strutils: fix __format__attribute
authorKarel Zak <kzak@redhat.com>
Fri, 18 Jun 2021 14:33:16 +0000 (16:33 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 18 Jun 2021 14:33:16 +0000 (16:33 +0200)
Reported-by: Jan Pazdziora <jpazdziora@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
include/strutils.h

index a62f724933822e23b7cfd14f10245b118e9751fd..e75a2f0e17eebb8c1c975a2c6376566291c65d0a 100644 (file)
@@ -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);