TT#76711 fix str_sprintf va_args definition

Change-Id: I70d65bc519ca82fe4e464946beb154e0b5031c0d
changes/43/38443/8
Richard Fuchs 5 years ago
parent 0dc052e2cc
commit f6d134918a

@ -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 */

Loading…
Cancel
Save