mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
scan istream on Irix without crashing
This commit is contained in:
parent
b9caf48c17
commit
e13d8f7518
@ -148,7 +148,7 @@ read_prc(istream &in) {
|
|||||||
|
|
||||||
in.read(buffer, buffer_size);
|
in.read(buffer, buffer_size);
|
||||||
size_t count = in.gcount();
|
size_t count = in.gcount();
|
||||||
while (count != 0) {
|
while (count != 0 && !in.fail() && !in.eof()) {
|
||||||
char *buffer_end = buffer + count;
|
char *buffer_end = buffer + count;
|
||||||
|
|
||||||
// Look for the first line in the buffer..
|
// Look for the first line in the buffer..
|
||||||
|
Loading…
x
Reference in New Issue
Block a user