From f6d134918a87ce55ee82cc329129cc5596cfd562 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 11 Mar 2020 11:39:35 -0400 Subject: [PATCH] TT#76711 fix str_sprintf va_args definition Change-Id: I70d65bc519ca82fe4e464946beb154e0b5031c0d --- lib/str.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/str.h b/lib/str.h index e296097c5..4ced69171 100644 --- a/lib/str.h +++ b/lib/str.h @@ -90,7 +90,7 @@ INLINE int str_token_sep(str *new_token, str *ori_and_remainder, int sep); INLINE char *str_ncpy(char *dst, size_t bufsize, const str *src); /* asprintf() analogs */ -#define str_sprintf(fmt, a...) __str_sprintf(STR_MALLOC_PADDING fmt, a) +#define str_sprintf(fmt, ...) __str_sprintf(STR_MALLOC_PADDING fmt, ##__VA_ARGS__) #define str_vsprintf(fmt, a) __str_vsprintf(STR_MALLOC_PADDING fmt, a) /* creates a new empty GString that has mem allocated for a new str object */