[MPlayer-cvslog] r29576 - trunk/libvo/osx_common.c
reimar
subversion at mplayerhq.hu
Fri Aug 28 15:30:32 CEST 2009
Author: reimar
Date: Fri Aug 28 15:30:32 2009
New Revision: 29576
Log:
1l, use sizeof for snprintf size instead of hard-coding the current value.
Modified:
trunk/libvo/osx_common.c
Modified: trunk/libvo/osx_common.c
==============================================================================
--- trunk/libvo/osx_common.c Fri Aug 28 15:29:07 2009 (r29575)
+++ trunk/libvo/osx_common.c Fri Aug 28 15:30:32 2009 (r29576)
@@ -57,7 +57,7 @@ void change_movie_aspect(float new_aspec
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));
}
More information about the MPlayer-cvslog
mailing list