summaryrefslogtreecommitdiff
path: root/adb_io.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'adb_io.cpp')
-rw-r--r--adb_io.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/adb_io.cpp b/adb_io.cpp
index ca8729e..38e3116 100644
--- a/adb_io.cpp
+++ b/adb_io.cpp
@@ -31,7 +31,7 @@
bool SendProtocolString(int fd, const std::string& s) {
unsigned int length = s.size();
- if (length > MAX_PAYLOAD_V1 - 4) {
+ if (length > MAX_PAYLOAD - 4) {
errno = EMSGSIZE;
return false;
}