summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-08-28 13:30:32 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-08-28 13:30:32 +0000
commit6497662b92f8f62a94d9d0bc43a5db1c6b408eaf (patch)
treedadf2f9bea695615cfb29c113eaa37cee6cf92f0 /libvo
parentfde99e3c5d497cbf983ddff59857062f971d798e (diff)
downloadmpv-6497662b92f8f62a94d9d0bc43a5db1c6b408eaf.tar.bz2
mpv-6497662b92f8f62a94d9d0bc43a5db1c6b408eaf.tar.xz
1l, use sizeof for snprintf size instead of hard-coding the current value.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29576 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/osx_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/osx_common.c b/libvo/osx_common.c
index aa1de118f0..588980dfe5 100644
--- a/libvo/osx_common.c
+++ b/libvo/osx_common.c
@@ -57,7 +57,7 @@ void change_movie_aspect(float new_aspect)
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));
}