From ff483cfd7ea5c7dd03ba59bc68447571200bbb2e Mon Sep 17 00:00:00 2001 From: Ashutosh Dixit Date: Fri, 1 Jul 2022 20:05:36 -0700 Subject: tests/kms_cursor_crc: Fix -Wformat-truncation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [72/1181] Compiling C object tests/kms_cursor_crc.p/kms_cursor_crc.c.o ../tests/kms_cursor_crc.c: In function ‘run_size_tests.constprop’: ../tests/kms_cursor_crc.c:702:50: warning: ‘%d’ directive output may be truncated writing between 1 and 11 bytes into a region of size between 4 and 14 [-Wformat-truncation=] 702 | snprintf(name, sizeof(name), "%dx%d", w, h); | ^~ ../tests/kms_cursor_crc.c:702:46: note: directive argument in the range [-2147483648, 1024] 702 | snprintf(name, sizeof(name), "%dx%d", w, h); | ^~~~~~~ Signed-off-by: Ashutosh Dixit Reviewed-by: Ville Syrjälä --- tests/kms_cursor_crc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c index 5c90537b..58806355 100644 --- a/tests/kms_cursor_crc.c +++ b/tests/kms_cursor_crc.c @@ -693,7 +693,7 @@ static void test_rapid_movement(data_t *data) static void run_size_tests(data_t *data, void (*testfunc)(data_t *), int w, int h) { - char name[16]; + char name[32]; enum pipe pipe; if (w == 0 && h == 0) -- cgit v1.2.3