diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-12-29 16:31:37 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-12-29 16:31:37 +0000 |
commit | a77bbe234670c86d1082729002980dbe17f4a5c3 (patch) | |
tree | c61f63057064fb9af1f39aff0b4aa4727b8b4b81 | |
parent | 6fbf17e7b0a690d95abe9cc889133b607e6f2e28 (diff) | |
download | tor-a77bbe234670c86d1082729002980dbe17f4a5c3.tar.gz tor-a77bbe234670c86d1082729002980dbe17f4a5c3.zip |
r11753@Kushana: nickm | 2006-12-29 11:30:28 -0500
Fix flipped sign in compare: make descriptors buildable again.
svn:r9214
-rw-r--r-- | src/or/router.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/router.c b/src/or/router.c index cdc6994959..634ed4122b 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -1205,7 +1205,7 @@ router_dump_router_to_string(char *s, size_t maxlen, routerinfo_t *router, if (result < 0) return -1; written += result; - if (written < maxlen+2) + if (written+2 > maxlen) return -1; s[written++] = '\n'; } |