@@ -277,7 +277,7 @@ void ScreenPrinter::draw_scenario_screen()
277
277
display_scenario->stats ->GetStat (CStat::CPT_C_OutgoingCallCreated);
278
278
if (creationMode == MODE_SERVER) {
279
279
lines.push_back (" Port Total-time Total-calls Transport" );
280
- snprintf (buf, 256 , " %-5d %6lu.%02lu s %8llu %s" , local_port,
280
+ snprintf (buf, bufsiz , " %-5d %6lu.%02lu s %8llu %s" , local_port,
281
281
clock_tick / 1000 , (clock_tick % 1000 ) / 10 , total_calls,
282
282
TRANSPORT_TO_STRING (transport));
283
283
lines.push_back (buf);
@@ -286,7 +286,7 @@ void ScreenPrinter::draw_scenario_screen()
286
286
if (users >= 0 ) {
287
287
lines.push_back (" Users (length) Port Total-time "
288
288
" Total-calls Remote-host" );
289
- snprintf (buf, 256 ,
289
+ snprintf (buf, bufsiz ,
290
290
" %d (%d ms) %-5d %6lu.%02lu s %8llu %s:%d(%s)" ,
291
291
users, duration, local_port, clock_tick / 1000 ,
292
292
(clock_tick % 1000 ) / 10 , total_calls, remote_ip,
@@ -296,7 +296,7 @@ void ScreenPrinter::draw_scenario_screen()
296
296
lines.push_back (" Call rate (length) Port Total-time "
297
297
" Total-calls Remote-host" );
298
298
snprintf (
299
- buf, 256 ,
299
+ buf, bufsiz ,
300
300
" %3.1f(%d ms)/%5.3fs %-5d %6lu.%02lu s %8llu %s:%d(%s)" ,
301
301
rate, duration, (double )rate_period_ms / 1000.0 , local_port,
302
302
clock_tick / 1000 , (clock_tick % 1000 ) / 10 , total_calls,
0 commit comments