aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-10-27 05:53:07 +0000
committerNick Mathewson <nickm@torproject.org>2004-10-27 05:53:07 +0000
commitbc62f8e983e913c8a37f3412466b8bc9d360b614 (patch)
tree250a926a93cfb511368c69c3c152bb8744097d98 /src/or/circuitbuild.c
parent7d4854301c719e71bd94be5eaec732a9b1e74c0d (diff)
downloadtor-bc62f8e983e913c8a37f3412466b8bc9d360b614.tar
tor-bc62f8e983e913c8a37f3412466b8bc9d360b614.tar.gz
Replace sprintf with snprintf
svn:r2602
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 5b5c8e9a6..f9a369e59 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -1105,7 +1105,7 @@ static routerinfo_t *choose_good_entry_server(cpath_build_state_t *state)
for(i=0; i < smartlist_len(rl->routers); i++) {
r = smartlist_get(rl->routers, i);
- sprintf(buf, "%d", r->or_port);
+ snprintf(buf, sizeof(buf), "%d", r->or_port);
if(!smartlist_string_isin(options.FirewallPorts, buf))
smartlist_add(excluded, r);
}