summaryrefslogtreecommitdiff
path: root/lib/asan/asan_malloc_mac.cc
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2014-12-02 22:20:11 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2014-12-02 22:20:11 +0000
commit30ce7beb1ac62e90468747a2d0ab1111467da8b4 (patch)
tree6c768fdba6a8fc2a70a437e6dc705f02b2b8211b /lib/asan/asan_malloc_mac.cc
parenta9c8d49ab44c6802d8257706e208fb88f2f09e71 (diff)
downloadcompiler-rt-30ce7beb1ac62e90468747a2d0ab1111467da8b4.tar.gz
Replace InternalScopedBuffer<char> with InternalScopedString where applicable.
Summary: No functionality change. Test Plan: make check-all Reviewers: kcc Reviewed By: kcc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D6472 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@223164 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_malloc_mac.cc')
-rw-r--r--lib/asan/asan_malloc_mac.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/asan/asan_malloc_mac.cc b/lib/asan/asan_malloc_mac.cc
index 2ef4c77ff..79b6dfae1 100644
--- a/lib/asan/asan_malloc_mac.cc
+++ b/lib/asan/asan_malloc_mac.cc
@@ -90,9 +90,9 @@ INTERCEPTOR(void, malloc_set_zone_name, malloc_zone_t *zone, const char *name) {
ENSURE_ASAN_INITED();
// Allocate |strlen("asan-") + 1 + internal_strlen(name)| bytes.
size_t buflen = 6 + (name ? internal_strlen(name) : 0);
- InternalScopedBuffer<char> new_name(buflen);
+ InternalScopedString new_name(buflen);
if (name && zone->introspect == asan_zone.introspect) {
- internal_snprintf(new_name.data(), buflen, "asan-%s", name);
+ new_name.append("asan-%s", name);
name = new_name.data();
}