From 2512985e8af44d1a05b8e46183352554aa3a2326 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Sun, 17 Jun 2018 17:40:38 +0000 Subject: [sanitizer] Fix s390 build after r334900 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@334913 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/sanitizer_common/sanitizer_linux_s390.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sanitizer_common') diff --git a/lib/sanitizer_common/sanitizer_linux_s390.cc b/lib/sanitizer_common/sanitizer_linux_s390.cc index a6da82ecb..ad8c87f2d 100644 --- a/lib/sanitizer_common/sanitizer_linux_s390.cc +++ b/lib/sanitizer_common/sanitizer_linux_s390.cc @@ -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] != '.') -- cgit v1.2.3