`strncpy()` return value should be always checked

Always check `strncpy()` return value even if validation has been done previously to detect any modifications to stack. Thanks @rafal-krypa for taking note on this :)