Diff between 2a1ad0fc32283d3180b4a8c80436ecf513ce9244 and 63840f388363cfd0ced37cf2db272bea93df1a31
Changed Files
| File | Additions | Deletions | Status |
| tools/btmgmt.c | +1 | -3 | modified |
Full Patch
diff --git a/tools/btmgmt.c b/tools/btmgmt.c
index 1d71d74..9d417bf 100644
--- a/tools/btmgmt.c
+++ b/tools/btmgmt.c
@@ -553,10 +553,8 @@ static void user_confirm(uint16_t index, uint16_t len, const void *param,
}
rsp_len = strlen(rsp);
- if (rsp[rsp_len - 1] == '\n') {
+ if (rsp[rsp_len - 1] == '\n')
rsp[rsp_len - 1] = '\0';
- rsp_len--;
- }
if (rsp[0] == 'y' || rsp[0] == 'Y')
mgmt_confirm_reply(mgmt, index, &ev->addr.bdaddr);