diff options
author | Peter Palfrader <peter@palfrader.org> | 2006-03-14 23:40:37 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2006-03-14 23:40:37 +0000 |
commit | a4ec555228153801a1b866a1eb93c633b391a88e (patch) | |
tree | 16fb2a587f0ac78b0ff3c0f44d026307fb75fccc /src/or/router.c | |
parent | de5fac0ed1252596c29114482f3d59c9b8497371 (diff) | |
download | tor-a4ec555228153801a1b866a1eb93c633b391a88e.tar.gz tor-a4ec555228153801a1b866a1eb93c633b391a88e.zip |
change INET_NTOA_BUF_LEN+1 to INET_NTOA_BUF_LEN
add a comment in a few places where we add weird numbers to buffer lengths
svn:r6161
Diffstat (limited to 'src/or/router.c')
-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 d4be274916..2534d98f12 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -244,8 +244,7 @@ init_keys(void) char keydir[512]; char keydir2[512]; char fingerprint[FINGERPRINT_LEN+1]; - /*nickname fp\n\0 */ - char fingerprint_line[FINGERPRINT_LEN+MAX_NICKNAME_LEN+3]; + char fingerprint_line[MAX_NICKNAME_LEN+FINGERPRINT_LEN+3]; /*nickname<space>fp\n\0 */ char *cp; const char *mydesc, *datadir; crypto_pk_env_t *prkey; |