Re: [PATCH] C undefined behavior fix

Florian Weimer
2002-01-02T10:33:10Z

Momchil Velikov <velco@fadata.bg> writes:

> - strcpy(namep, RELOC("linux,phandle"));
> + memcpy (namep, RELOC("linux,phandle"), sizeof("linux,phandle"));

Doesn't this still trigger undefined behavior, as far as the C
standard is concerned? It's probably a better idea to fix the linker,
so that it performs proper relocation.