# HG changeset patch # User reimar # Date 1302360436 0 # Node ID f6a049eff960a78099d9031f87d1adfcd9439db5 # Parent 5dcbfb18ad5876876dfd88697a2e5b7250023b2c Prefer snprintf over printf. diff -r 5dcbfb18ad58 -r f6a049eff960 mplayer.c --- a/mplayer.c Sat Apr 09 14:37:30 2011 +0000 +++ b/mplayer.c Sat Apr 09 14:47:16 2011 +0000 @@ -2238,7 +2238,7 @@ #ifdef CONFIG_NETWORKING if (udp_master) { char current_time[256]; - sprintf(current_time, "%f", mpctx->sh_video->pts); + snprintf(current_time, sizeof(current_time), "%f", mpctx->sh_video->pts); send_udp(udp_ip, udp_port, current_time); } #endif /* CONFIG_NETWORKING */