From fb0e4d66c074618a2b562e7cad1f95a33e7dd1cd Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 22 Feb 2017 10:34:10 -0600 Subject: [PATCH] Fix ordering of parameters in call to memmove() in strings.h. Noted by David Sidrane. --- include/strings.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/strings.h b/include/strings.h index 6fdaec2275..36c8d75590 100644 --- a/include/strings.h +++ b/include/strings.h @@ -94,7 +94,7 @@ static inline int bcmp(FAR const void *b1, FAR const void *b2, size_t len) static inline void bcopy(FAR const void *b1, FAR void *b2, size_t len) { - (void)memmove(b1, b2, len); + (void)memmove(b2, b1, len); } #ifndef CONFIG_LIBC_ARCH_BZERO