mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
fix redundant (and dangerous) NUL termination
svn:r3062
This commit is contained in:
parent
d10679e2ad
commit
0799804c60
@ -599,9 +599,8 @@ mark_my_descriptor_dirty(void)
|
||||
*/
|
||||
void get_platform_str(char *platform, size_t len)
|
||||
{
|
||||
tor_snprintf(platform, len-1, "Tor %s on %s",
|
||||
tor_snprintf(platform, len, "Tor %s on %s",
|
||||
VERSION, get_uname());
|
||||
platform[len-1] = '\0';
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user