From f8185878fb8465961231d8827a6f9050feef9a8f Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Mon, 26 Jan 2009 11:30:10 +0000 Subject: Make snprintf write to the correct location --- ot_stats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ot_stats.c b/ot_stats.c index f9bc44b..e9bb2f1 100644 --- a/ot_stats.c +++ b/ot_stats.c @@ -565,7 +565,7 @@ void stats_issue_event( ot_status_event event, PROTO_FLAG proto, uintptr_t event char _debug[512]; int off = snprintf( _debug, sizeof(_debug), "[%08d] scrp: ", (unsigned int)(g_now_seconds - ot_start_time)/60 ); off += fmt_ip6( _debug+off, *ip ); - off += snprintf( _debug, sizeof(_debug)-off, " - FULL SCRAPE\n" ); + off += snprintf( _debug+off, sizeof(_debug)-off, " - FULL SCRAPE\n" ); write( 2, _debug, off ); ot_full_scrape_request_count++; } @@ -576,7 +576,7 @@ void stats_issue_event( ot_status_event event, PROTO_FLAG proto, uintptr_t event char _debug[512]; int off = snprintf( _debug, sizeof(_debug), "[%08d] scrp: ", (unsigned int)(g_now_seconds - ot_start_time)/60 ); off += fmt_ip6(_debug+off, *ip ); - off += snprintf( _debug, sizeof(_debug)-off, " - FULL SCRAPE\n" ); + off += snprintf( _debug+off, sizeof(_debug)-off, " - FULL SCRAPE\n" ); write( 2, _debug, off ); ot_full_scrape_request_count++; } -- cgit v1.2.3