summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2009-10-20 23:12:13 +0200
committerStefan Roese <sr@denx.de>2009-10-23 15:50:22 +0200
commit76706cb86b1c76954ff5353db6757ab99cfd95fb (patch)
treebb48f9d23c3c956a1b88e5b775e964e629864996 /cpu
parentf67066b6b0740b826ed862615c5ab022aaf4779a (diff)
downloadu-boot-imx-76706cb86b1c76954ff5353db6757ab99cfd95fb.zip
u-boot-imx-76706cb86b1c76954ff5353db6757ab99cfd95fb.tar.gz
u-boot-imx-76706cb86b1c76954ff5353db6757ab99cfd95fb.tar.bz2
cpu/ppc4xx/fdt.c: avoid strcpy() to constant string
strcpy() was iused with the target address being a pointer to a constant string, which potentially is read-only. Use a (writable) array of characters instead. Signed-off-by: Wolfgang Denk <wd@denx.de> Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'cpu')
-rw-r--r--cpu/ppc4xx/fdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu/ppc4xx/fdt.c b/cpu/ppc4xx/fdt.c
index 496e028..b310832 100644
--- a/cpu/ppc4xx/fdt.c
+++ b/cpu/ppc4xx/fdt.c
@@ -42,7 +42,7 @@ void __ft_board_setup(void *blob, bd_t *bd)
u32 bxcr;
u32 ranges[EBC_NUM_BANKS * 4];
u32 *p = ranges;
- char *ebc_path = "/plb/opb/ebc";
+ char ebc_path[] = "/plb/opb/ebc";
ft_cpu_setup(blob, bd);