commit | 4eb7a66d9410927fb8fbafad8b8298b627cdd128 | [log] [tgz] |
---|---|---|
author | Jason Wessel <jason.wessel@windriver.com> | Sun Feb 03 09:32:28 2013 -0600 |
committer | Jason Wessel <jason.wessel@windriver.com> | Sat Mar 02 08:52:18 2013 -0600 |
tree | c16c9844a02ac61b1d4aac613f18f3157620de46 | |
parent | 3b0eb71ec9e22c6735c84f800d6523c96839efe6 [diff] |
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 <rustyBSD@gmx.fr> Signed-off-by: Jason Wessel <jason.wessel@windriver.com>