NOW it works. Needed to cast to a char *.