Minimal error handling
I don't know why this fails on Linux, but assigning to a char* turns up empty.