Browse Source

Fix an off-by-one buffer size in dirserv.c that magically never hit our
three authorities but broke sjmurdoch's own tor network.


svn:r6157

Peter Palfrader 19 years ago
parent
commit
2ef8f772a1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/dirserv.c

+ 1 - 1
src/or/dirserv.c

@@ -1311,7 +1311,7 @@ generate_v2_networkstatus(void)
   or_options_t *options = get_options();
   char fingerprint[FINGERPRINT_LEN+1];
   char ipaddr[INET_NTOA_BUF_LEN+1];
-  char published[ISO_TIME_LEN];
+  char published[ISO_TIME_LEN+1];
   char digest[DIGEST_LEN];
   struct in_addr in;
   uint32_t addr;