[MPlayer-cvslog] r33241 - trunk/mplayer.c
reimar
subversion at mplayerhq.hu
Sat Apr 9 16:47:16 CEST 2011
Author: reimar
Date: Sat Apr 9 16:47:16 2011
New Revision: 33241
Log:
Prefer snprintf over printf.
Modified:
trunk/mplayer.c
Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c Sat Apr 9 16:37:30 2011 (r33240)
+++ trunk/mplayer.c Sat Apr 9 16:47:16 2011 (r33241)
@@ -2238,7 +2238,7 @@ static int sleep_until_update(float *tim
#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 */
More information about the MPlayer-cvslog
mailing list