summaryrefslogtreecommitdiff
path: root/src/or/rendservice.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/rendservice.c
parent7d4854301c719e71bd94be5eaec732a9b1e74c0d (diff)
downloadtor-bc62f8e983e913c8a37f3412466b8bc9d360b614.tar.gz
tor-bc62f8e983e913c8a37f3412466b8bc9d360b614.zip
Replace sprintf with snprintf
svn:r2602
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r--src/or/rendservice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index ddf54d836c..34711c8e54 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -309,7 +309,7 @@ int rend_service_load_keys(void)
log_fn(LOG_WARN, "Directory name too long: '%s'", s->directory);
return -1;
}
- sprintf(buf, "%s.onion\n", s->service_id);
+ snprintf(buf, sizeof(buf),"%s.onion\n", s->service_id);
if (write_str_to_file(fname,buf,0)<0)
return -1;
}