wpa_gui: Silence a compiler warning
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
eadfeb0e93
commit
68f9f480ef
1 changed files with 3 additions and 1 deletions
|
@ -476,7 +476,9 @@ void Peers::add_stations()
|
||||||
add_station(info);
|
add_station(info);
|
||||||
|
|
||||||
reply_len = sizeof(reply) - 1;
|
reply_len = sizeof(reply) - 1;
|
||||||
snprintf(cmd, sizeof(cmd), "STA-NEXT %s", reply);
|
res = snprintf(cmd, sizeof(cmd), "STA-NEXT %s", reply);
|
||||||
|
if (res < 0 || (size_t) res >= sizeof(cmd))
|
||||||
|
break;
|
||||||
res = wpagui->ctrlRequest(cmd, reply, &reply_len);
|
res = wpagui->ctrlRequest(cmd, reply, &reply_len);
|
||||||
} while (res >= 0);
|
} while (res >= 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue