diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-10-27 05:53:07 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-10-27 05:53:07 +0000 |
commit | bc62f8e983e913c8a37f3412466b8bc9d360b614 (patch) | |
tree | 250a926a93cfb511368c69c3c152bb8744097d98 /src/or/circuitbuild.c | |
parent | 7d4854301c719e71bd94be5eaec732a9b1e74c0d (diff) | |
download | tor-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.c | 2 |
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); } |