diff --git a/libtransmission/session.c b/libtransmission/session.c index 16d49ffef..8fd072202 100644 --- a/libtransmission/session.c +++ b/libtransmission/session.c @@ -297,7 +297,7 @@ format_tos (int value) case 0x04: return "reliability"; case 0x02: return "lowdelay"; default: - snprintf (buf, 8, "%d", value); + tr_snprintf (buf, 8, "%d", value); return buf; } } diff --git a/libtransmission/tr-lpd.c b/libtransmission/tr-lpd.c index b8e4570a8..ab1f30c89 100644 --- a/libtransmission/tr-lpd.c +++ b/libtransmission/tr-lpd.c @@ -225,7 +225,7 @@ static int lpd_extractParam (const char* const str, const char* const name, int return 0; /* compose the string token to search for */ - snprintf (sstr, maxLength, CRLF "%s: ", name); + tr_snprintf (sstr, maxLength, CRLF "%s: ", name); pos = strstr (str, sstr); if (pos == NULL) @@ -454,8 +454,8 @@ tr_lpdSendAnnounce (const tr_torrent* t) hashString[i] = toupper (t->info.hashString[i]); /* prepare a zero-terminated announce message */ - snprintf (query, lpd_maxDatagramLength + 1, fmt, 1, 1, - lpd_mcastGroup, lpd_mcastPort, lpd_port, hashString); + tr_snprintf (query, lpd_maxDatagramLength + 1, fmt, 1, 1, + lpd_mcastGroup, lpd_mcastPort, lpd_port, hashString); /* actually send the query out using [lpd_socket2] */ {