]> granicus.if.org Git - transmission/commitdiff
fixup! fix: __attribute__(__printf__) warnings
authorCharles Kerr <ckerr@github.com>
Sat, 2 Mar 2019 22:26:27 +0000 (16:26 -0600)
committerCharles Kerr <ckerr@github.com>
Sat, 2 Mar 2019 22:26:27 +0000 (16:26 -0600)
libtransmission/utils.h

index c119bc96156448a8e6989f6e59ff670492bc374b..9c1b58ef3fa52c199826a9969d6d80567595ffb0 100644 (file)
@@ -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);