[rtems commit] shell: Correct argument order of `mfill`

Gedare Bloom gedare at rtems.org
Thu Mar 14 13:56:55 UTC 2019


Module:    rtems
Branch:    4.10
Commit:    e816b4e961be287857a0c5d57d154062b2e9ff40
Changeset: http://git.rtems.org/rtems/commit/?id=e816b4e961be287857a0c5d57d154062b2e9ff40

Author:    Jonathan Brandmeyer <jbrandmeyer at planetiq.com>
Date:      Tue Mar 12 21:03:52 2019 -0600

shell: Correct argument order of `mfill`

Close #3723.

(cherry picked from commit 2e8a66d13f04015c0024a084578f720ceb15ea00)

---

 cpukit/libmisc/shell/main_mfill.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/libmisc/shell/main_mfill.c b/cpukit/libmisc/shell/main_mfill.c
index ecbaec4..c86e2b6 100644
--- a/cpukit/libmisc/shell/main_mfill.c
+++ b/cpukit/libmisc/shell/main_mfill.c
@@ -62,7 +62,7 @@ int rtems_shell_main_mfill(
   /*
    *  Now fill the memory.
    */
-  memset(addr, size, value);
+  memset(addr, value, size);
 
   return 0;
 }




More information about the vc mailing list