1
0
mirror of git://erdgeist.org/opentracker synced 2025-01-27 07:06:45 +00:00

Make snprintf write to the correct location

This commit is contained in:
erdgeist 2009-01-26 11:30:10 +00:00
parent 1d821b95cb
commit f8185878fb

View File

@ -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++;
}