diff options
-rw-r--r-- | src/or/router.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/router.c b/src/or/router.c index 74f1473f7f..8e512dee08 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -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; } |