Skip to content
Snippets Groups Projects
Commit 0e1ac981 authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

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: default avatarWolfgang Denk <wd@denx.de>
parent f67066b6
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment