[rtems commit] rtems_shell_main_mmove problem

Joel Sherrill joel at rtems.org
Fri Dec 23 18:56:36 UTC 2022


Module:    rtems
Branch:    master
Commit:    4523c71340569c87dad6936bb3dad241ac8aa724
Changeset: http://git.rtems.org/rtems/commit/?id=4523c71340569c87dad6936bb3dad241ac8aa724

Author:    zack leung <zakthertemsdev at gmail.com>
Date:      Wed Dec 14 20:12:25 2022 -0500

rtems_shell_main_mmove problem

--0000000000006acec205efd38cd6
Content-Type: text/plain; charset="UTF-8"

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;
 }



More information about the vc mailing list