Mercurial > mplayer.hg
diff libvo/osx_common.c @ 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 | 99b8d8d5c2d4 |
children | b2f841a1905e |
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)); }