]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix redundant (and dangerous) NUL termination
authorRoger Dingledine <arma@torproject.org>
Thu, 2 Dec 2004 04:16:18 +0000 (04:16 +0000)
committerRoger Dingledine <arma@torproject.org>
Thu, 2 Dec 2004 04:16:18 +0000 (04:16 +0000)
svn:r3062

src/or/router.c

index 74f1473f7f040b5eb2e096b3534860f97ef43747..8e512dee08c01cd594e6779981cb33ddc251c2cb 100644 (file)
@@ -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;
 }