fprintf(pFile,msg.c_str());
why do I get a warning in Xcode :
Format string is not a string literal (potentially insecure)
I assume I get this warning to prevent attacks were msg contains some thing like %s which stream the stack to the screen until it gets to null termination. Is there any safe way to use fprintf in this case?
You can either give a format string,
or use
fputs,