From 63894faf1ee3e490c0cc07ef28c6725edc4c523d Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 7 Jun 2007 00:24:57 +0000 Subject: Error in memcpy arguments for SDCC platforms git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@271 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/examples/ostest/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3