Re: [PATCH] C undefined behavior fix

From: Florian Weimer (
Date: Wed Jan 02 2002 - 05:29:20 EST

Momchil Velikov <> 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.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Jan 07 2002 - 21:00:16 EST