This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix for CONFIG_STRING option in RedBoot


Index: ecos/packages/redboot/current/src/flash.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/redboot/current/src/flash.c,v
retrieving revision 1.46
diff -u -u -r1.46 flash.c
--- ecos/packages/redboot/current/src/flash.c	14 May 2003 20:12:54 -0000	1.46
+++ ecos/packages/redboot/current/src/flash.c	29 Jul 2003 10:27:29 -0000
@@ -2006,7 +2006,7 @@
 #endif
 #endif
     case CONFIG_STRING:
-        memcpy(dp, (void *)opt->dflt, config_length(CONFIG_STRING));
+        memcpy(dp, (void *)&opt->dflt, config_length(CONFIG_STRING));
         break;
     case CONFIG_SCRIPT:
         break;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]