summaryrefslogtreecommitdiffstats
path: root/adb/adb_io.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'adb/adb_io.cpp')
-rw-r--r--adb/adb_io.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/adb/adb_io.cpp b/adb/adb_io.cpp
index 38e31167e..6cc274bbe 100644
--- a/adb/adb_io.cpp
+++ b/adb/adb_io.cpp
@@ -49,7 +49,7 @@ bool ReadProtocolString(int fd, std::string* s, std::string* error) {
}
buf[4] = 0;
- unsigned long len = strtoul(buf, 0, 16);
+ unsigned long len = strtoul(buf, nullptr, 16);
s->resize(len, '\0');
if (!ReadFdExactly(fd, &(*s)[0], len)) {
*error = perror_str("protocol fault (couldn't read status message)");