Fix after receiving warning from cppcheck regarding strncpy and null-terminated-strings