wpa_gui: Silence a compiler warning

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2019-12-28 00:17:55 +02:00
parent eadfeb0e93
commit 68f9f480ef

View file

@ -476,7 +476,9 @@ void Peers::add_stations()
add_station(info);
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);
} while (res >= 0);
}