summaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-10-27 06:37:34 +0000
committerNick Mathewson <nickm@torproject.org>2004-10-27 06:37:34 +0000
commit44d4516155309e15b3463a543aef6239d485a04e (patch)
tree0bf498a321c230f9fc777a307d94a9f5476f1aa8 /src/or/routerparse.c
parent1aaedcb17159bbf724a56ae9e977504a68f0b8c9 (diff)
downloadtor-44d4516155309e15b3463a543aef6239d485a04e.tar.gz
tor-44d4516155309e15b3463a543aef6239d485a04e.zip
Use tor_snprintf, not snprintf
svn:r2609
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r--src/or/routerparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index bc6030b202..31f308d2ae 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -1032,7 +1032,7 @@ router_parse_exit_policy(directory_token_t *tok) {
newe = tor_malloc_zero(sizeof(struct exit_policy_t));
newe->string = tor_malloc(8+strlen(arg));
- snprintf(newe->string, 8+strlen(arg), "%s %s",
+ tor_snprintf(newe->string, 8+strlen(arg), "%s %s",
(tok->tp == K_REJECT) ? "reject" : "accept", arg);
newe->policy_type = (tok->tp == K_REJECT) ? EXIT_POLICY_REJECT
: EXIT_POLICY_ACCEPT;