From a77bbe234670c86d1082729002980dbe17f4a5c3 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 29 Dec 2006 16:31:37 +0000 Subject: r11753@Kushana: nickm | 2006-12-29 11:30:28 -0500 Fix flipped sign in compare: make descriptors buildable again. svn:r9214 --- src/or/router.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; } -- cgit v1.2.3-54-g00ecf