Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test_hexdump: use memcpy instead of strncpy
New versions of gcc reasonably warn about the odd pattern of strncpy(p, q, strlen(q)); which really doesn't make sense: the strncpy() ends up being just a slow and odd way to write memcpy() in this case. Apparently there was a patch for this floating around earlier, but it got lost. Acked-again-by: Andy Shevchenko <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information