Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1b600a90 authored by Elliott Hughes's avatar Elliott Hughes
Browse files

Fix Win32 build.

Change-Id: Icf2c8df99b4b88bbf85a4097731733c5795fba44
parent 4546520c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -191,7 +191,7 @@ int _adb_connect(const char *service, std::string* error) {
    D("_adb_connect: %s\n", service);
    D("_adb_connect: %s\n", service);
    size_t len = strlen(service);
    size_t len = strlen(service);
    if ((len < 1) || (len > 1024)) {
    if ((len < 1) || (len > 1024)) {
        *error = android::base::StringPrintf("service name too long (%zd)", len);
        *error = android::base::StringPrintf("service name too long (%d)", static_cast<int>(len));
        return -1;
        return -1;
    }
    }
    snprintf(tmp, sizeof tmp, "%04zx", len);
    snprintf(tmp, sizeof tmp, "%04zx", len);