diff options
author | Steve Kondik <steve@cyngn.com> | 2015-10-18 02:07:16 -0700 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-10-18 02:07:16 -0700 |
commit | faa3d3c9bc2b07c8aa54be624b3de85efa968100 (patch) | |
tree | 80369729fd70809111ec8a206e984752438fa0cb | |
parent | 1fbb934c3ae6f89f917d982cb8256805343d5499 (diff) | |
download | system_core-faa3d3c9bc2b07c8aa54be624b3de85efa968100.zip system_core-faa3d3c9bc2b07c8aa54be624b3de85efa968100.tar.gz system_core-faa3d3c9bc2b07c8aa54be624b3de85efa968100.tar.bz2 |
adb: Fix compilation issue
Change-Id: Ia3284d5b8e428474726f64231f8142cf2474b17f
-rw-r--r-- | adb/services.cpp | 3 |
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; } |