Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kdb: Fix overlap in buffers with strcpy
Maxime reported that strcpy(s->usage, s->usage+1) has no definitive guarantee that it will work on all archs the same way when you have overlapping memory. The fix is simple for the kdb code because we still have the original string memory in the function scope, so we just have to use that as the argument instead. Reported-by: Maxime Villard <[email protected]> Signed-off-by: Jason Wessel <[email protected]>
- Loading branch information