[cfe-commits] r58150 - /cfe/trunk/Driver/clang.cpp

Ted Kremenek kremenek at apple.com
Sat Oct 25 13:19:34 PDT 2008


Author: kremenek
Date: Sat Oct 25 15:19:34 2008
New Revision: 58150

URL: http://llvm.org/viewvc/llvm-project?rev=58150&view=rev
Log:
Use string literal for format string specifier; this prevents ErrMsg from being interpretted as a format string specifier.

Modified:
    cfe/trunk/Driver/clang.cpp

Modified: cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=58150&r1=58149&r2=58150&view=diff

==============================================================================
--- cfe/trunk/Driver/clang.cpp (original)
+++ cfe/trunk/Driver/clang.cpp Sat Oct 25 15:19:34 2008
@@ -1089,7 +1089,7 @@
       const char* ErrStr;
       bool DFG = CreateDependencyFileGen(PP, OutputFile, InFile, ErrStr);
        if (!DFG && ErrStr) {
-        fprintf(stderr, ErrStr);
+        fprintf(stderr, "%s", ErrStr);
         return NULL;
       }
     }





More information about the cfe-commits mailing list