[sanitizer] Fix s390 build after r334900
authorVitaly Buka <vitalybuka@google.com>
Sun, 17 Jun 2018 17:40:38 +0000 (17:40 +0000)
committerVitaly Buka <vitalybuka@google.com>
Sun, 17 Jun 2018 17:40:38 +0000 (17:40 +0000)
llvm-svn: 334913

compiler-rt/lib/sanitizer_common/sanitizer_linux_s390.cc

index a6da82e..ad8c87f 100644 (file)
@@ -126,7 +126,7 @@ static bool FixedCVE_2016_2143() {
   // This should never fail, but just in case...
   if (uname(&buf))
     return false;
-  char *ptr = buf.release;
+  const char *ptr = buf.release;
   major = internal_simple_strtoll(ptr, &ptr, 10);
   // At least first 2 should be matched.
   if (ptr[0] != '.')