This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Fix for CONFIG_STRING option in RedBoot
- From: Xavier Debreuil <xavier dot debreuil at inventel dot fr>
- To: ecos-patches at sources dot redhat dot com
- Date: Wed, 30 Jul 2003 10:11:35 +0200
- Subject: 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;