changeset 33154:f6a049eff960

Prefer snprintf over printf.
author reimar
date Sat, 09 Apr 2011 14:47:16 +0000
parents 5dcbfb18ad58
children 16e5b7f9ddb8
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 */