diff options
author | Roger Dingledine <arma@torproject.org> | 2004-12-04 01:23:04 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-12-04 01:23:04 +0000 |
commit | 675f60aa13ef6fd3934085a16addef6769360e92 (patch) | |
tree | ccaa6f63f97abfe8f1642a4adc772dddcef5860a /src/or/routerparse.c | |
parent | fc87758ff3a1e194df96fb6914680d451cf8fe47 (diff) | |
download | tor-675f60aa13ef6fd3934085a16addef6769360e92.tar tor-675f60aa13ef6fd3934085a16addef6769360e92.tar.gz |
whoops
just because it says snprintf doesn't mean it's a noop
svn:r3071
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r-- | src/or/routerparse.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c index c0ecd14c2..a8f9aac09 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -1052,8 +1052,9 @@ router_parse_addr_policy(directory_token_t *tok) { newe = tor_malloc_zero(sizeof(addr_policy_t)); newe->string = tor_malloc(8+strlen(arg)); -// tor_snprintf(newe->string, 8+strlen(arg), "%s %s", -// (tok->tp == K_REJECT) ? "reject" : "accept", arg); + /* XXX eventually, use the code from router.c:727 to generate this */ + tor_snprintf(newe->string, 8+strlen(arg), "%s %s", + (tok->tp == K_REJECT) ? "reject" : "accept", arg); newe->policy_type = (tok->tp == K_REJECT) ? ADDR_POLICY_REJECT : ADDR_POLICY_ACCEPT; |