[igt-dev] [PATCH i-g-t 3/4] tests/kms_cursor_crc: Increase space for the resolution name

Ryszard Knop ryszard.knop at intel.com
Thu Jun 2 08:22:23 UTC 2022


While it's rather unlikely we'll ever get a name larger than 16 chars,
GCC warns about possible truncation here. Let's just give it more space
to silence the warning.

Signed-off-by: Ryszard Knop <ryszard.knop at intel.com>
---
 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 513c9715..e419fc9f 100644
--- a/tests/kms_cursor_crc.c
+++ b/tests/kms_cursor_crc.c
@@ -691,7 +691,7 @@ static void test_rapid_movement(data_t *data)
 static void run_size_tests(data_t *data, enum pipe pipe,
 			   int w, int h)
 {
-	char name[16];
+	char name[24];
 
 	if (w == 0 && h == 0)
 		strcpy(name, "max-size");
-- 
2.36.1



More information about the igt-dev mailing list