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

Commit a3408388 authored by Colin Cross's avatar Colin Cross Committed by Gerrit Code Review
Browse files

Merge "[binder]: Correct the index for getReturnString"

parents 430b3667 73a7dde7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -107,8 +107,9 @@ static const char *kCommandStrings[] = {
    "BC_DEAD_BINDER_DONE"
};

static const char* getReturnString(size_t idx)
static const char* getReturnString(uint32_t cmd)
{
    size_t idx = cmd & 0xff;
    if (idx < sizeof(kReturnStrings) / sizeof(kReturnStrings[0]))
        return kReturnStrings[idx];
    else