Merge tag 'io_uring-5.12-2021-03-05' of git://git.kernel.dk/linux-block
[linux-2.6-microblaze.git] / lib / test_hexdump.c
index 626f580..5144899 100644 (file)
@@ -99,7 +99,7 @@ static void __init test_hexdump_prepare_test(size_t len, int rowsize,
                const char *q = *result++;
                size_t amount = strlen(q);
 
-               strncpy(p, q, amount);
+               memcpy(p, q, amount);
                p += amount;
 
                *p++ = ' ';