summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nuttx/examples/ostest/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/examples/ostest/main.c b/nuttx/examples/ostest/main.c
index 30dd8c926..b9d80ff8e 100644
--- a/nuttx/examples/ostest/main.c
+++ b/nuttx/examples/ostest/main.c
@@ -167,7 +167,7 @@ static int user_main(int argc, char *argv[])
g_mmprevious = g_mmbefore;
#else
(void)mallinfo(&g_mmbefore);
- memcpy(g_mmprevious, g_mmbefore, sizeof(struct mallinfo));
+ memcpy(&g_mmprevious, &g_mmbefore, sizeof(struct mallinfo));
#endif
#endif