From e495eadf270d4d1491cf70225ccc48fda76f7dbe Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sat, 2 Mar 2019 16:26:27 -0600 Subject: [PATCH] fixup! fix: __attribute__(__printf__) warnings --- libtransmission/utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtransmission/utils.h b/libtransmission/utils.h index c119bc961..9c1b58ef3 100644 --- a/libtransmission/utils.h +++ b/libtransmission/utils.h @@ -220,8 +220,8 @@ void tr_quickfindFirstK(void* base, size_t nmemb, size_t size, tr_voidptr_compar * @brief sprintf() a string into a newly-allocated buffer large enough to hold it * @return a newly-allocated string that can be freed with tr_free() */ -char* tr_strdup_printf(char const* fmt, ...) TR_GNUC_PRINTF(1, 2); -char* tr_strdup_vprintf(char const* fmt, va_list args) TR_GNUC_PRINTF(1, 0); +char* tr_strdup_printf(char const* fmt, ...) TR_GNUC_MALLOC TR_GNUC_PRINTF(1, 2); +char* tr_strdup_vprintf(char const* fmt, va_list args) TR_GNUC_MALLOC TR_GNUC_PRINTF(1, 0); /** @brief Portability wrapper for strlcpy() that uses the system implementation if available */ size_t tr_strlcpy(char* dst, void const* src, size_t siz); -- 2.40.0