From 4f6d6f76af0e5a3e23bae810f0709aa6ad298c01 Mon Sep 17 00:00:00 2001 From: Zebity Spring Date: Sat, 21 Sep 2019 17:57:35 +1000 Subject: [PATCH] Add ssnprintf2 wrapper variiant definition --- src/utils/common/common.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/common/common.h b/src/utils/common/common.h index 1ca65054..595ae3e1 100644 --- a/src/utils/common/common.h +++ b/src/utils/common/common.h @@ -69,6 +69,9 @@ char *sstrncpy(char *dest, const char *src, size_t n); __attribute__((format(printf, 3, 4))) int ssnprintf(char *str, size_t size, char const *format, ...); +__attribute__((format(printf, 3, 4))) int ssnprintf2(char *str, size_t size, + char const *format, ...); + __attribute__((format(printf, 1, 2))) char *ssnprintf_alloc(char const *format, ...); -- 2.11.0