r11753@Kushana: nickm | 2006-12-29 11:30:28 -0500

Fix flipped sign in compare: make descriptors buildable again.


svn:r9214
This commit is contained in:
Nick Mathewson
2006-12-29 16:31:37 +00:00
parent 6fbf17e7b0
commit a77bbe2346
+1 -1
View File
@@ -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';
}