# HG changeset patch # User reimar # Date 1251466232 0 # Node ID 01715e52db6e5f111f4bd0503d4e2824e92ca45f # Parent 9c8f8e3758235cea972a6cce77c5ef5f22ecac8d 1l, use sizeof for snprintf size instead of hard-coding the current value. diff -r 9c8f8e375823 -r 01715e52db6e libvo/osx_common.c --- 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)); }