Clean up getcommand(): use sizeof() instead of literal 1024
This commit is contained in:
parent
e8b98f308e
commit
8de0869a21
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ getcommand(char *combufp)
|
||||||
do {
|
do {
|
||||||
prprompt(natp->nat_timeused / 60, natp->nat_btu);
|
prprompt(natp->nat_timeused / 60, natp->nat_btu);
|
||||||
buf[0] = 0;
|
buf[0] = 0;
|
||||||
if (recvclient(buf, 1024) < 0) {
|
if (recvclient(buf, sizeof(buf)) < 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
} while (buf[0] == 0);
|
} while (buf[0] == 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue