mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-16 17:58:23 +00:00
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>
This commit is contained in:
parent
f67066b6b0
commit
76706cb86b
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ void __ft_board_setup(void *blob, bd_t *bd)
|
||||||
u32 bxcr;
|
u32 bxcr;
|
||||||
u32 ranges[EBC_NUM_BANKS * 4];
|
u32 ranges[EBC_NUM_BANKS * 4];
|
||||||
u32 *p = ranges;
|
u32 *p = ranges;
|
||||||
char *ebc_path = "/plb/opb/ebc";
|
char ebc_path[] = "/plb/opb/ebc";
|
||||||
|
|
||||||
ft_cpu_setup(blob, bd);
|
ft_cpu_setup(blob, bd);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue