Browse Source

r11753@Kushana: nickm | 2006-12-29 11:30:28 -0500
Fix flipped sign in compare: make descriptors buildable again.


svn:r9214

Nick Mathewson 19 years ago
parent
commit
a77bbe2346
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/router.c

+ 1 - 1
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';
   }