(libT) replace errant snprintf() calls with tr_snprintf() calls
This commit is contained in:
parent
c6290bcd71
commit
e2c1a360d4
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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,7 +454,7 @@ 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,
|
||||
tr_snprintf (query, lpd_maxDatagramLength + 1, fmt, 1, 1,
|
||||
lpd_mcastGroup, lpd_mcastPort, lpd_port, hashString);
|
||||
|
||||
/* actually send the query out using [lpd_socket2] */
|
||||
|
|
Loading…
Reference in New Issue