summaryrefslogtreecommitdiffstats
path: root/adb
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2015-10-18 02:07:16 -0700
committerSteve Kondik <steve@cyngn.com>2015-10-18 02:07:16 -0700
commitfaa3d3c9bc2b07c8aa54be624b3de85efa968100 (patch)
tree80369729fd70809111ec8a206e984752438fa0cb /adb
parent1fbb934c3ae6f89f917d982cb8256805343d5499 (diff)
downloadsystem_core-faa3d3c9bc2b07c8aa54be624b3de85efa968100.zip
system_core-faa3d3c9bc2b07c8aa54be624b3de85efa968100.tar.gz
system_core-faa3d3c9bc2b07c8aa54be624b3de85efa968100.tar.bz2
adb: Fix compilation issue
Change-Id: Ia3284d5b8e428474726f64231f8142cf2474b17f
Diffstat (limited to 'adb')
-rw-r--r--adb/services.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/adb/services.cpp b/adb/services.cpp
index e683028..ef2fa56 100644
--- a/adb/services.cpp
+++ b/adb/services.cpp
@@ -83,8 +83,7 @@ void restart_root_service(int fd, void *cookie) {
property_get("ro.cm.version", cm_version, "");
if (strlen(cm_version) > 0 && strcmp(build_type, "eng") != 0 && (atoi(value) & 2) != 2) {
- snprintf(buf, sizeof(buf), "root access is disabled by system setting - enable in settings -> development options\n");
- writex(fd, buf, strlen(buf));
+ WriteFdExactly(fd, "root access is disabled by system setting - enable in settings -> development options\n");
adb_close(fd);
return;
}