Mercurial > mplayer.hg
comparison mplayer.c @ 33154:f6a049eff960
Prefer snprintf over printf.
author | reimar |
---|---|
date | Sat, 09 Apr 2011 14:47:16 +0000 |
parents | df7f89ce12a7 |
children | 16e5b7f9ddb8 |
comparison
equal
deleted
inserted
replaced
33153:5dcbfb18ad58 | 33154:f6a049eff960 |
---|---|
2236 *time_frame = timing_sleep(*time_frame); | 2236 *time_frame = timing_sleep(*time_frame); |
2237 | 2237 |
2238 #ifdef CONFIG_NETWORKING | 2238 #ifdef CONFIG_NETWORKING |
2239 if (udp_master) { | 2239 if (udp_master) { |
2240 char current_time[256]; | 2240 char current_time[256]; |
2241 sprintf(current_time, "%f", mpctx->sh_video->pts); | 2241 snprintf(current_time, sizeof(current_time), "%f", mpctx->sh_video->pts); |
2242 send_udp(udp_ip, udp_port, current_time); | 2242 send_udp(udp_ip, udp_port, current_time); |
2243 } | 2243 } |
2244 #endif /* CONFIG_NETWORKING */ | 2244 #endif /* CONFIG_NETWORKING */ |
2245 | 2245 |
2246 return frame_time_remaining; | 2246 return frame_time_remaining; |