From bc62f8e983e913c8a37f3412466b8bc9d360b614 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 27 Oct 2004 05:53:07 +0000 Subject: Replace sprintf with snprintf svn:r2602 --- src/or/rendservice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/rendservice.c') 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; } -- cgit v1.2.3-54-g00ecf