mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
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:
+1
-1
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user