cannot convert parameter 19 from 'unsigned char [500]' to 'char *'