comparison 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
comparison
equal deleted inserted replaced
29533:9c8f8e375823 29534:01715e52db6e
55 { 55 {
56 char cmd_str[64]; 56 char cmd_str[64];
57 if (new_aspect < 0) 57 if (new_aspect < 0)
58 new_aspect = old_movie_aspect; 58 new_aspect = old_movie_aspect;
59 our_aspect_change = 1; 59 our_aspect_change = 1;
60 snprintf(cmd_str, 64, "switch_ratio %f", old_movie_aspect); 60 snprintf(cmd_str, sizeof(cmd_str), "switch_ratio %f", old_movie_aspect);
61 mp_input_queue_cmd(mp_input_parse_cmd(cmd_str)); 61 mp_input_queue_cmd(mp_input_parse_cmd(cmd_str));
62 } 62 }
63 63
64 /** 64 /**
65 * Call in config to save the original movie aspect. 65 * Call in config to save the original movie aspect.