]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - lib/test_hexdump.c
Merge branch 'enable-and-use-static_branch_deferred_inc'
[linux.git] / lib / test_hexdump.c
index 626f580b4ff7b0c52fd3aeb7cffdf19429c3f457..5144899d3c6b8b235d33c8a988f3a413fa34aff8 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++ = ' ';