diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-01-02 02:01:15 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-01-02 02:01:15 +0000 |
commit | 6ae3ba9b2deff56e329f8411389013a46649376d (patch) | |
tree | 109eecca53c43666c816116365961bebed23096b | |
parent | 09d98baa862019099d29a77d126f67e3309c50bf (diff) | |
download | tor-6ae3ba9b2deff56e329f8411389013a46649376d.tar.gz tor-6ae3ba9b2deff56e329f8411389013a46649376d.zip |
r11777@Kushana: nickm | 2007-01-01 21:01:10 -0500
Fix an idiot bug in r9181: snprintf returns <0 on error, not !=0.
svn:r9232
-rw-r--r-- | src/or/dirserv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 92c789ec60..45de98265d 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -1565,7 +1565,7 @@ generate_v2_networkstatus(void) 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; } |