Commit a860adb4 authored by Michael Niedermayer's avatar Michael Niedermayer

tests/checkasm/vp9dsp: Use snprintf() for safetey

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 78af3ffa
......@@ -143,11 +143,13 @@ static void check_mc(void)
for (dx = 0; dx < 2; dx++) {
for (dy = 0; dy < 2; dy++) {
if (dx || dy) {
sprintf(str, "%s_%s_%d%s", op_names[op],
filter_names[filter], size,
subpel_names[dy][dx]);
snprintf(str, sizeof(str),
"%s_%s_%d%s", op_names[op],
filter_names[filter], size,
subpel_names[dy][dx]);
} else {
sprintf(str, "%s%d", op_names[op], size);
snprintf(str, sizeof(str),
"%s%d", op_names[op], size);
}
if (check_func(dsp.mc[hsize][filter][op][dx][dy],
"vp9_%s_%dbpp", str, bit_depth)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment