Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
gh-51: Fix adb shell for empty host name as well
Browse files Browse the repository at this point in the history
previous one only fixed it for device id being given
  • Loading branch information
ztNFny authored and FauxFaux committed Aug 11, 2013
1 parent 866b27b commit 2202ef3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adb.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ static const char *adb_init(void *frontend_handle, void **backend_handle,
size_t len = strlen(host);
if (len == 0) {
sk_write(adb->s, ADB_SHELL_DEFAULT_STR, ADB_SHELL_DEFAULT_STR_LEN);
sk_flush(adb->s);
adb->state = 1;
} else {
char sendbuf[512];
#define ADB_SHELL_HOST_MAX_LEN (sizeof(sendbuf)-4-ADB_SHELL_SERIAL_PREFIX_LEN)
Expand Down

0 comments on commit 2202ef3

Please sign in to comment.