kopia lustrzana https://github.com/Hamlib/Hamlib
No need to use strlen() because the i variable counted the chars read
rodzic
af4c6ec806
commit
d5c5eeff15
|
@ -107,12 +107,12 @@ getmyline(int fd, char *buf)
|
|||
{
|
||||
buf[i++] = c;
|
||||
|
||||
if (c == ';') { return strlen(buf); }
|
||||
if (c == ';') { return i; }
|
||||
}
|
||||
|
||||
if (strlen(buf) == 0) { hl_usleep(10 * 1000); }
|
||||
if (i == 0) { hl_usleep(10 * 1000); }
|
||||
|
||||
return strlen(buf);
|
||||
return i;
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Ładowanie…
Reference in New Issue