summaryrefslogtreecommitdiff
path: root/lib/test-hexdump.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/test-hexdump.c')
-rw-r--r--lib/test-hexdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test-hexdump.c b/lib/test-hexdump.c
index 5241df36eedf..dadcabe50988 100644
--- a/lib/test-hexdump.c
+++ b/lib/test-hexdump.c
@@ -81,7 +81,7 @@ static void __init test_hexdump(size_t len, int rowsize, int groupsize,
const char *q = *result++;
size_t amount = strlen(q);
- strncpy(p, q, amount);
+ memcpy(p, q, amount);
p += amount + 1;
}
if (i)