[PATCH] rtems_shell_main_mmove problem

zack leung zakthertemsdev at gmail.com
Thu Dec 15 01:12:25 UTC 2022


Closes #4556
---
 cpukit/libmisc/shell/main_mmove.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/libmisc/shell/main_mmove.c
b/cpukit/libmisc/shell/main_mmove.c
index 38731b10a2..0029882d62 100644
--- a/cpukit/libmisc/shell/main_mmove.c
+++ b/cpukit/libmisc/shell/main_mmove.c
@@ -62,7 +62,7 @@ static int rtems_shell_main_mmove(
   /*
    *  Now copy the memory.
    */
-  memcpy(dst, src, length);
+  memmove(dst, src, length);

  return 0;
 }
-- 
2.38.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20221214/091e02f0/attachment.htm>


More information about the devel mailing list