[sanitizer] Replace deprecated mktemp with mkstemp
authorVitaly Buka <vitalybuka@google.com>
Wed, 6 Jun 2018 22:05:48 +0000 (22:05 +0000)
committerVitaly Buka <vitalybuka@google.com>
Wed, 6 Jun 2018 22:05:48 +0000 (22:05 +0000)
llvm-svn: 334138

compiler-rt/lib/sanitizer_common/tests/sanitizer_libc_test.cc

index 1a9add8..8836255 100644 (file)
@@ -84,7 +84,7 @@ static void temp_file_name(char *buf, size_t bufsize, const char *prefix) {
   tmpdir = GetEnv("EXTERNAL_STORAGE");
 #endif
   internal_snprintf(buf, bufsize, "%s/%sXXXXXX", tmpdir, prefix);
-  ASSERT_TRUE(mktemp(buf));
+  ASSERT_TRUE(mkstemp(buf));
 #endif
 }