From 5c53c63aa0f9e98e5aec61311a898bb76df3849a Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Mon, 11 Oct 2004 21:55:19 +0000 Subject: Fix a potential buffer overflow found by Ilja van Sprundel. We don't think this is exploitable, but best to fix it anyway. svn:r2437 --- src/or/rephist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/or/rephist.c b/src/or/rephist.c index 1638d52e11..ed701009bc 100644 --- a/src/or/rephist.c +++ b/src/or/rephist.c @@ -287,7 +287,7 @@ void rep_hist_dump_stats(time_t now, int severity) break; } } - log(severity, buffer); + log(severity, "%s", buffer); } } } -- cgit v1.2.3-54-g00ecf