diff options
author | Roger Dingledine <arma@torproject.org> | 2004-12-02 04:16:18 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-12-02 04:16:18 +0000 |
commit | 0799804c604761f4cfe8c1a67b2234e3ff7033a1 (patch) | |
tree | 7dcb6d25a8848ab60f16060ccbe83bb648035f80 | |
parent | d10679e2adc79a025fe1c95084bfd31afa159032 (diff) | |
download | tor-0799804c604761f4cfe8c1a67b2234e3ff7033a1.tar.gz tor-0799804c604761f4cfe8c1a67b2234e3ff7033a1.zip |
fix redundant (and dangerous) NUL termination
svn:r3062
-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; } |