--- zzzz-none-000/linux-3.10.107/arch/powerpc/platforms/powermac/bootx_init.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/powerpc/platforms/powermac/bootx_init.c 2021-02-04 17:41:59.000000000 +0000 @@ -246,7 +246,7 @@ DBG(" detected display ! adding properties names !\n"); bootx_dt_add_string("linux,boot-display", mem_end); bootx_dt_add_string("linux,opened", mem_end); - strncpy(bootx_disp_path, namep, 255); + strlcpy(bootx_disp_path, namep, sizeof(bootx_disp_path)); } /* get and store all property names */