From: Charles Kerr Date: Sat, 2 Mar 2019 22:26:27 +0000 (-0600) Subject: fixup! fix: __attribute__(__printf__) warnings X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e495eadf270d4d1491cf70225ccc48fda76f7dbe;p=transmission fixup! fix: __attribute__(__printf__) warnings --- 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);