Merge tag 'dma-mapping-5.14-1' of git://git.infradead.org/users/hch/dma-mapping
[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++ = ' ';