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

Commit e7b2a436 authored by Stephen Hines's avatar Stephen Hines Committed by Android Git Automerger
Browse files

am e551055e: Merge "Fix signed/unsigned comparison warning"

* commit 'e551055e':
  Fix signed/unsigned comparison warning
parents 02adb534 e551055e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1067,7 +1067,7 @@ void connect_device(char* host, char* buffer, int buffer_size)

    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;
        }