summaryrefslogtreecommitdiff
path: root/contexthubhal/NanohubHidlAdapter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contexthubhal/NanohubHidlAdapter.cpp')
-rw-r--r--contexthubhal/NanohubHidlAdapter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/contexthubhal/NanohubHidlAdapter.cpp b/contexthubhal/NanohubHidlAdapter.cpp
index 9efca2ad..671d7812 100644
--- a/contexthubhal/NanohubHidlAdapter.cpp
+++ b/contexthubhal/NanohubHidlAdapter.cpp
@@ -579,7 +579,7 @@ Return<void> Contexthub::debug(const hidl_handle& hh_fd,
} else {
result.appendFormat("unknown debug options");
}
- write(fd, result.string(), result.size());
+ write(fd, result.c_str(), result.size());
return Void();
}