tests/legacy/kernel/test_libs: use memcpy() vs strncpy()
tests/legacy/kernel/test_libs: use memcpy() vs strncpy()

Coverity complained about the use of strncpy() to fill up a buffer of
size N with a string of the same size didn't leave room for the final
\0.

This is a valid concern; however, the usage is valid too, as the
writer intended to create a pattern that later can be tested--addind a
\0 would break the pattern.

So instead, use memcpy() for the same function.

Change-Id: If52d02ce41731348f4a2d750c79f9e1c51f3afcf
Coverity-ID: 151947
Signed-off-by: Inaky Perez-Gonzalez <96af2f95d738a33e3cb28686ea74cc090643af9b@intel.com>

fractalclone/zephyr-riscv,sharronliu/zephyr,ldts/zephyr,aceofall/zephyr-iotos,pklazy/zephyr,zephyriot/zephyr,kraj/zephyr,runchip/zephyr-cc3220,kraj/zephyr,explora26/zephyr,tidyjiang8/zephyr-doc,sharronliu/zephyr,GiulianoFranchetto/zephyr,runchip/zephyr-cc3200,GiulianoFranchetto/zephyr,Vudentz/zephyr,nashif/zephyr,erwango/zephyr,punitvara/zephyr,runchip/zephyr-cc3220,holtmann/zephyr,aceofall/zephyr-iotos,mbolivar/zephyr,finikorg/zephyr,nashif/zephyr,zephyrproject-rtos/zephyr,kraj/zephyr,Vudentz/zephyr,rsalveti/zephyr,bigdinotech/zephyr,rsalveti/zephyr,ldts/zephyr,galak/zephyr,bigdinotech/zephyr,sharronliu/zephyr,aceofall/zephyr-iotos,sharronliu/zephyr,Vudentz/zephyr,holtmann/zephyr,kraj/zephyr,erwango/zephyr,pklazy/zephyr,nashif/zephyr,fbsder/zephyr,bboozzoo/zephyr,bigdinotech/zephyr,fractalclone/zephyr-riscv,finikorg/zephyr,zephyriot/zephyr,bigdinotech/zephyr,fbsder/zephyr,finikorg/zephyr,punitvara/zephyr,tidyjiang8/zephyr-doc,aceofall/zephyr-iotos,pklazy/zephyr,holtmann/zephyr,zephyriot/zephyr,Vudentz/zephyr,GiulianoFranchetto/zephyr,explora26/zephyr,pklazy/zephyr,kraj/zephyr,runchip/zephyr-cc3200,bigdinotech/zephyr,explora26/zephyr,runchip/zephyr-cc3220,tidyjiang8/zephyr-doc,zephyrproject-rtos/zephyr,GiulianoFranchetto/zephyr,bboozzoo/zephyr,mbolivar/zephyr,ldts/zephyr,runchip/zephyr-cc3200,galak/zephyr,zephyrproject-rtos/zephyr,rsalveti/zephyr,erwango/zephyr,runchip/zephyr-cc3220,rsalveti/zephyr,zephyrproject-rtos/zephyr,nashif/zephyr,galak/zephyr,mbolivar/zephyr,ldts/zephyr,fbsder/zephyr,explora26/zephyr,galak/zephyr,holtmann/zephyr,fbsder/zephyr,tidyjiang8/zephyr-doc,bboozzoo/zephyr,explora26/zephyr,runchip/zephyr-cc3200,punitvara/zephyr,Vudentz/zephyr,pklazy/zephyr,holtmann/zephyr,rsalveti/zephyr,zephyriot/zephyr,Vudentz/zephyr,runchip/zephyr-cc3200,erwango/zephyr,nashif/zephyr,mbolivar/zephyr,tidyjiang8/zephyr-doc,erwango/zephyr,fractalclone/zephyr-riscv,bboozzoo/zephyr,GiulianoFranchetto/zephyr,fractalclone/zephyr-riscv,zephyrproject-rtos/zephyr,punitvara/zephyr,ldts/zephyr,finikorg/zephyr,fbsder/zephyr,mbolivar/zephyr,galak/zephyr,finikorg/zephyr,bboozzoo/zephyr,aceofall/zephyr-iotos,fractalclone/zephyr-riscv,punitvara/zephyr,zephyriot/zephyr,sharronliu/zephyr,runchip/zephyr-cc3220