diff options
author | Pratyush Anand <panand@redhat.com> | 2015-04-23 08:34:17 +0530 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2015-04-23 13:44:47 +0900 |
commit | 458e81576530d47a1b0abd734645635e5691000d (patch) | |
tree | 134ba16d0f58439a624cf795b24e7bd3191bbb7b /purgatory | |
parent | 8da5dd2da475ea4d15d0b18c7f4732cb82242d47 (diff) | |
download | kexec-tools-458e81576530d47a1b0abd734645635e5691000d.tar.gz |
purgatory: Fix memcmp for src address increment
src addresses are not being incremented, so only first byte is compared
instead of first len bytes.
Signed-off-by: Pratyush Anand <panand@redhat.com>
Acked-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'purgatory')
-rw-r--r-- | purgatory/string.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/purgatory/string.c b/purgatory/string.c index 4f35613..f06c460 100644 --- a/purgatory/string.c +++ b/purgatory/string.c @@ -46,6 +46,8 @@ int memcmp(void *src1, void *src2, size_t len) if (*s1 != *s2) { return *s2 - *s1; } + s1++; + s2++; } return 0; |