ditto for the announcement message
This commit is contained in:
parent
8d54a2472d
commit
f970022838
|
@ -818,10 +818,11 @@ ARDOUR_UI::check_announcements ()
|
||||||
if (fin) {
|
if (fin) {
|
||||||
while (!feof (fin)) {
|
while (!feof (fin)) {
|
||||||
char tmp[1024];
|
char tmp[1024];
|
||||||
if (fread (tmp, sizeof(char), 1024, fin) <= 0) {
|
size_t len;
|
||||||
|
if ((len = fread (tmp, sizeof(char), 1024, fin)) == 0 || ferror (fin)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
_announce_string += tmp;
|
_announce_string.append (tmp, len);
|
||||||
}
|
}
|
||||||
fclose (fin);
|
fclose (fin);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user