From a400b109214a2987d3ba7b68da205599f81c44b9 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 24 Aug 2018 22:30:32 -0400 Subject: [PATCH] fusee-primary: Fix always false conditional in xmemmove This was corrected in 4b8455baf91d8699a663341c135c91c34f0a7816 for fusee-secondary, but I neglected to also fix it in fusee-primary (my bad!) --- fusee/fusee-primary/src/chainloader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fusee/fusee-primary/src/chainloader.c b/fusee/fusee-primary/src/chainloader.c index 6890ff4ff..b4090b103 100644 --- a/fusee/fusee-primary/src/chainloader.c +++ b/fusee/fusee-primary/src/chainloader.c @@ -17,7 +17,7 @@ static void *xmemmove(void *dst, const void *src, size_t len) for (size_t i = 0; i < len; i++) { dst8[i] = src8[i]; } - } else if (src8 > dst8) { + } else if (dst8 > src8) { for (size_t i = len; len > 0; len--) dst8[i - 1] = src8[i - 1]; }