(libT) replace errant snprintf() calls with tr_snprintf() calls

This commit is contained in:
Jordan Lee 2013-01-23 04:28:37 +00:00
parent c6290bcd71
commit e2c1a360d4
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}
}

View File

@ -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] */
{