diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-02-20 00:55:34 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-04-18 11:04:56 -0400 |
commit | 9246a7ca58d14a975b2788772238c5a7799d54b6 (patch) | |
tree | 90ef397fae2590351a28f14bd18cce311a7dfdd1 /src/or/networkstatus.c | |
parent | 9f044eac77ee2245de71283e71361346ee194f25 (diff) | |
download | tor-9246a7ca58d14a975b2788772238c5a7799d54b6.tar.gz tor-9246a7ca58d14a975b2788772238c5a7799d54b6.zip |
Refactor routerstatus_format_entry to avoid character-buffers
Diffstat (limited to 'src/or/networkstatus.c')
-rw-r--r-- | src/or/networkstatus.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c index c63c76fccd..cde146907c 100644 --- a/src/or/networkstatus.c +++ b/src/or/networkstatus.c @@ -2127,9 +2127,7 @@ signed_descs_update_status_from_consensus_networkstatus(smartlist_t *descs) char * networkstatus_getinfo_helper_single(const routerstatus_t *rs) { - char buf[RS_ENTRY_LEN+1]; - routerstatus_format_entry(buf, sizeof(buf), rs, NULL, NS_CONTROL_PORT, NULL); - return tor_strdup(buf); + return routerstatus_format_entry(rs, NULL, NS_CONTROL_PORT, NULL); } /** Alloc and return a string describing routerstatuses for the most |