aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-10-25 20:19:34 +0000
committerTed Kremenek <kremenek@apple.com>2008-10-25 20:19:34 +0000
commit9a30c2474f824db655d0744856f8030ad377e339 (patch)
treecef9ab46b88bf1249c8a0313b83c00a5585bcadf
parent5b2316a8b695589f8e91baf1df06c1082ac94b6d (diff)
Use string literal for format string specifier; this prevents ErrMsg from being interpretted as a format string specifier.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58150 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--Driver/clang.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index cd58a05ee7..0bc5ca43bc 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -1089,7 +1089,7 @@ public:
const char* ErrStr;
bool DFG = CreateDependencyFileGen(PP, OutputFile, InFile, ErrStr);
if (!DFG && ErrStr) {
- fprintf(stderr, ErrStr);
+ fprintf(stderr, "%s", ErrStr);
return NULL;
}
}