changeset 29534:01715e52db6e

1l, use sizeof for snprintf size instead of hard-coding the current value.
author reimar
date Fri, 28 Aug 2009 13:30:32 +0000
parents 9c8f8e375823
children b2f841a1905e
files libvo/osx_common.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/osx_common.c	Fri Aug 28 13:29:07 2009 +0000
+++ b/libvo/osx_common.c	Fri Aug 28 13:30:32 2009 +0000
@@ -57,7 +57,7 @@
     if (new_aspect < 0)
         new_aspect = old_movie_aspect;
     our_aspect_change = 1;
-    snprintf(cmd_str, 64, "switch_ratio %f", old_movie_aspect);
+    snprintf(cmd_str, sizeof(cmd_str), "switch_ratio %f", old_movie_aspect);
     mp_input_queue_cmd(mp_input_parse_cmd(cmd_str));
 }