[or-cvs] r9232: Fix an idiot bug in r9181: snprintf returns <0 on error, not (in tor/trunk: . src/or)
nickm at seul.org
nickm at seul.org
Tue Jan 2 02:01:16 UTC 2007
Author: nickm
Date: 2007-01-01 21:01:15 -0500 (Mon, 01 Jan 2007)
New Revision: 9232
Modified:
tor/trunk/
tor/trunk/src/or/dirserv.c
Log:
r11777 at Kushana: nickm | 2007-01-01 21:01:10 -0500
Fix an idiot bug in r9181: snprintf returns <0 on error, not !=0.
Property changes on: tor/trunk
___________________________________________________________________
svk:merge ticket from /tor/trunk [r11777] on c95137ef-5f19-0410-b913-86e773d04f59
Modified: tor/trunk/src/or/dirserv.c
===================================================================
--- tor/trunk/src/or/dirserv.c 2007-01-01 18:34:54 UTC (rev 9231)
+++ tor/trunk/src/or/dirserv.c 2007-01-02 02:01:15 UTC (rev 9232)
@@ -1565,7 +1565,7 @@
const char *eos = find_whitespace(ri->platform+4);
char *platform = tor_strndup(ri->platform+4, eos-(ri->platform+4));
if (tor_snprintf(outp, endp-outp,
- "opt v %s\n", platform)) {
+ "opt v %s\n", platform)<0) {
log_warn(LD_BUG, "Unable to print router version.");
goto done;
}
More information about the tor-commits
mailing list