Ensure NULL character after strncpy.