[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r9214: Fix flipped sign in compare: make descriptors buildable agai (in tor/trunk: . src/or)
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] r9214: Fix flipped sign in compare: make descriptors buildable agai (in tor/trunk: . src/or)
- From: nickm@xxxxxxxx
- Date: Fri, 29 Dec 2006 11:31:56 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Fri, 29 Dec 2006 11:33:02 -0500
- Reply-to: or-talk@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
Author: nickm
Date: 2006-12-29 11:31:37 -0500 (Fri, 29 Dec 2006)
New Revision: 9214
Modified:
tor/trunk/
tor/trunk/src/or/router.c
Log:
r11753@Kushana: nickm | 2006-12-29 11:30:28 -0500
Fix flipped sign in compare: make descriptors buildable again.
Property changes on: tor/trunk
___________________________________________________________________
svk:merge ticket from /tor/trunk [r11753] on c95137ef-5f19-0410-b913-86e773d04f59
Modified: tor/trunk/src/or/router.c
===================================================================
--- tor/trunk/src/or/router.c 2006-12-29 14:08:06 UTC (rev 9213)
+++ tor/trunk/src/or/router.c 2006-12-29 16:31:37 UTC (rev 9214)
@@ -1205,7 +1205,7 @@
if (result < 0)
return -1;
written += result;
- if (written < maxlen+2)
+ if (written+2 > maxlen)
return -1;
s[written++] = '\n';
}