diff options
author | Roger Dingledine <arma@torproject.org> | 2006-03-11 17:52:55 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-03-11 17:52:55 +0000 |
commit | c8e2a051ac62f2d29fdcd4d01ca6ea40afb105f9 (patch) | |
tree | 335fad883988bded8d80c6477c57fa510844f556 /src | |
parent | a7768d77fec95cfc5206e8b09945409d16eeab5c (diff) | |
download | tor-c8e2a051ac62f2d29fdcd4d01ca6ea40afb105f9.tar tor-c8e2a051ac62f2d29fdcd4d01ca6ea40afb105f9.tar.gz |
huge warning sign for esc_router_info()
svn:r6124
Diffstat (limited to 'src')
-rw-r--r-- | src/or/routerlist.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index b4b35a551..49a8142ed 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -3792,6 +3792,14 @@ routerlist_assert_ok(routerlist_t *rl) } } +/** Allocate and return a new string representing the contact info + * and platform string for <b>router</b>, + * surrounded by quotes and using standard C escapes. + * + * THIS FUNCTION IS NOT REENTRANT. Don't call it from outside the main + * thread. Also, each call invalidates the last-returned value, so don't + * try log_warn(LD_GENERAL, "%s %s", esc_router_info(a), esc_router_info(b)); + */ const char * esc_router_info(routerinfo_t *router) { |