Use strncpy properly