When a static array with string is created, the size of this array contains
the \0.
This error was raised with gcc 4.7 because, the local variables are not always
initialized to 0.
Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
fdt_begin_node(fdt, "hypervisor");
/* Cannot use fdt_property_string due to embedded nulls */
- fdt_property(fdt, "compatible", compat, sizeof(compat) + 1);
+ fdt_property(fdt, "compatible", compat, sizeof(compat));
/* reg 0 is grant table space */
cell = ®[0];