Clean up getcommand(): use sizeof() instead of literal 1024

This commit is contained in:
Markus Armbruster 2011-04-14 20:47:20 +02:00
parent e8b98f308e
commit 8de0869a21

View file

@ -80,7 +80,7 @@ getcommand(char *combufp)
do {
prprompt(natp->nat_timeused / 60, natp->nat_btu);
buf[0] = 0;
if (recvclient(buf, 1024) < 0) {
if (recvclient(buf, sizeof(buf)) < 0) {
return -1;
}
} while (buf[0] == 0);