commit | e7b2a43638956250d329a9ddb4eda21cd0a16ac7 | [log] [tgz] |
---|---|---|
author | Stephen Hines <srhines@google.com> | Wed Aug 08 16:02:42 2012 -0700 |
committer | Android Git Automerger <android-git-automerger@android.com> | Wed Aug 08 16:02:42 2012 -0700 |
tree | 2db926aa88c1e07671371c12bd534d8ed1520ecd | |
parent | 02adb534dafbd955e3470b8f370b108c5b11ce37 [diff] | |
parent | e551055e17dae5d37f5cb428d63ddcae2e9341a2 [diff] |
am e551055e: Merge "Fix signed/unsigned comparison warning" * commit 'e551055e17dae5d37f5cb428d63ddcae2e9341a2': Fix signed/unsigned comparison warning
diff --git a/adb/adb.c b/adb/adb.c index f4ee448..229f3ef 100644 --- a/adb/adb.c +++ b/adb/adb.c
@@ -1067,7 +1067,7 @@ strncpy(hostbuf, host, sizeof(hostbuf) - 1); if (portstr) { - if (portstr - host >= sizeof(hostbuf)) { + if ((unsigned int)(portstr - host) >= sizeof(hostbuf)) { snprintf(buffer, buffer_size, "bad host name %s", host); return; }