Fix string, define errbuf