Use fwrite since the strings are not NULL-terminated
Merge pull request #1 from sjoelund/fix-xerrwd

Use fwrite since the strings are not NULL-terminated