summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--base/shared_memory_android.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/shared_memory_android.cc b/base/shared_memory_android.cc
index 8e55e3a..a5beceb 100644
--- a/base/shared_memory_android.cc
+++ b/base/shared_memory_android.cc
@@ -21,7 +21,7 @@ bool SharedMemory::Create(const SharedMemoryCreateOptions& options) {
// "name" is just a label in ashmem. It is visible in /proc/pid/maps.
mapped_file_ = ashmem_create_region(
- options.name == NULL ? "" : options.name.c_str(),
+ options.name == NULL ? "" : options.name->c_str(),
options.size);
if (-1 == mapped_file_) {
DLOG(ERROR) << "Shared memory creation failed";
@@ -34,7 +34,7 @@ bool SharedMemory::Create(const SharedMemoryCreateOptions& options) {
DLOG(ERROR) << "Error " << err << " when setting protection of ashmem";
return false;
}
- created_size_ = size;
+ created_size_ = options.size;
return true;
}