summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
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));
}