Dangerous printf

The fragment is taken from TortoiseSVN project. The code contains an error that analyzer diagnoses in the following way: V618 It’s dangerous to call the ‘printf’ function in such a manner, as the line being passed could contain format specification. The example of the safe code: printf(“%s”, str);

Continue reading