diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-10-27 06:37:34 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-10-27 06:37:34 +0000 |
commit | 44d4516155309e15b3463a543aef6239d485a04e (patch) | |
tree | 0bf498a321c230f9fc777a307d94a9f5476f1aa8 /src/or/connection_edge.c | |
parent | 1aaedcb17159bbf724a56ae9e977504a68f0b8c9 (diff) | |
download | tor-44d4516155309e15b3463a543aef6239d485a04e.tar tor-44d4516155309e15b3463a543aef6239d485a04e.tar.gz |
Use tor_snprintf, not snprintf
svn:r2609
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r-- | src/or/connection_edge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 6ff223bce..ed2b7f15e 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -502,12 +502,12 @@ int connection_ap_handshake_send_begin(connection_t *ap_conn, circuit_t *circ) in.s_addr = htonl(client_dns_lookup_entry(ap_conn->socks_request->address)); string_addr = in.s_addr ? inet_ntoa(in) : NULL; - snprintf(payload,RELAY_PAYLOAD_SIZE, + tor_snprintf(payload,RELAY_PAYLOAD_SIZE, "%s:%d", string_addr ? string_addr : ap_conn->socks_request->address, ap_conn->socks_request->port); } else { - snprintf(payload,RELAY_PAYLOAD_SIZE, + tor_snprintf(payload,RELAY_PAYLOAD_SIZE, ":%d", ap_conn->socks_request->port); } payload_len = strlen(payload)+1; |