Add some error messages, use xmalloc instead of malloc
1 file changed