mirror of
https://github.com/mpv-player/mpv
synced 2024-12-29 18:42:09 +00:00
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
This commit is contained in:
parent
fde99e3c5d
commit
6497662b92
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user