Use strcpy, fix style issues.