lib: posix: Make sure the name string is NULL terminated
lib: posix: Make sure the name string is NULL terminated

Make sure the name string is NULL terminated in the readdir().

CID: 186037

Fixes Issue #7733

Signed-off-by: Ramakrishna Pallala <8cb5df094165bcc31e7d772ccd8d87d8c4d8f761@intel.com>

ldts/zephyr,zephyrproject-rtos/zephyr,nashif/zephyr,punitvara/zephyr,galak/zephyr,zephyriot/zephyr,Vudentz/zephyr,GiulianoFranchetto/zephyr,Vudentz/zephyr,mbolivar/zephyr,Vudentz/zephyr,kraj/zephyr,explora26/zephyr,kraj/zephyr,galak/zephyr,explora26/zephyr,mbolivar/zephyr,punitvara/zephyr,galak/zephyr,galak/zephyr,mbolivar/zephyr,kraj/zephyr,zephyrproject-rtos/zephyr,ldts/zephyr,zephyrproject-rtos/zephyr,ldts/zephyr,finikorg/zephyr,nashif/zephyr,zephyrproject-rtos/zephyr,GiulianoFranchetto/zephyr,explora26/zephyr,Vudentz/zephyr,mbolivar/zephyr,GiulianoFranchetto/zephyr,finikorg/zephyr,finikorg/zephyr,finikorg/zephyr,mbolivar/zephyr,kraj/zephyr,punitvara/zephyr,zephyriot/zephyr,finikorg/zephyr,nashif/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,GiulianoFranchetto/zephyr,punitvara/zephyr,zephyriot/zephyr,explora26/zephyr,punitvara/zephyr,Vudentz/zephyr,zephyriot/zephyr,explora26/zephyr,GiulianoFranchetto/zephyr,nashif/zephyr,ldts/zephyr,ldts/zephyr,nashif/zephyr,zephyriot/zephyr,kraj/zephyr,Vudentz/zephyr