aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.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/dirserv.c
parent7d4854301c719e71bd94be5eaec732a9b1e74c0d (diff)
downloadtor-bc62f8e983e913c8a37f3412466b8bc9d360b614.tar
tor-bc62f8e983e913c8a37f3412466b8bc9d360b614.tar.gz
Replace sprintf with snprintf
svn:r2602
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 74409fe52..d78ab7c45 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -835,7 +835,7 @@ static int generate_runningrouters(crypto_pk_env_t *private_key)
#endif
published_on = time(NULL);
format_iso_time(published, published_on);
- sprintf(s, "network-status\n"
+ snprintf(s, len, "network-status\n"
"published %s\n"
"router-status %s\n"
"opt dir-signing-key %s\n"