mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
ec6fbf1ca6
Rewrite format_node_description() and router_get_verbose_nickname() to use strlcpy() and strlcat(). The previous implementation used memcpy() and pointer arithmetic, which was error-prone. Closes ticket 31545. This is CID 1452819.
6 lines
296 B
Plaintext
6 lines
296 B
Plaintext
o Code simplification and refactoring:
|
|
- Rewrite format_node_description() and router_get_verbose_nickname() to
|
|
use strlcpy() and strlcat(). The previous implementation used memcpy()
|
|
and pointer arithmetic, which was error-prone.
|
|
Closes ticket 31545. This is CID 1452819.
|