From 0799804c604761f4cfe8c1a67b2234e3ff7033a1 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Thu, 2 Dec 2004 04:16:18 +0000 Subject: [PATCH] fix redundant (and dangerous) NUL termination svn:r3062 --- src/or/router.c | 3 +-- 1 file changed, 1 insertion(+), 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; }