fprintf(pFile,msg.c_str());
why I get a warning in Xcode:
Format string is not a string literal (potentially insecure)
I assume that I am getting this warning to prevent attacks. msg contains some thing like %s that passes the stack to the screen until it completes zero completion. Is there a safe way to use fprintf in this case?
source share