61eb3f4761
* minor KNF, fix typos, use strchr() not index() * check return value of malloc() and use strdup() where appropriate