]> granicus.if.org Git - clang/commitdiff
Fix URL trimming for version information.
authorMike Stump <mrs@apple.com>
Wed, 18 Mar 2009 15:19:35 +0000 (15:19 +0000)
committerMike Stump <mrs@apple.com>
Wed, 18 Mar 2009 15:19:35 +0000 (15:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67206 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Driver.cpp

index fd2ff4813824207d361bc225b4f7b53cd81da31c..d539070d5dfc135accd5d547982f5089d87ecddb 100644 (file)
@@ -219,7 +219,7 @@ void Driver::PrintVersion() const {
   zap = strstr(buf, "/clang/tools/clang");
   if (zap)
     *zap = 0;
-  const char *vers = buf+10;
+  const char *vers = buf+6;
 
   // FIXME: The following handlers should use a callback mechanism, we
   // don't know what the client would like to do.