diff options
Diffstat (limited to 'linden/indra/newview/llpolymesh.cpp')
-rw-r--r-- | linden/indra/newview/llpolymesh.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/linden/indra/newview/llpolymesh.cpp b/linden/indra/newview/llpolymesh.cpp index 1edb8f5..6cc3fc7 100644 --- a/linden/indra/newview/llpolymesh.cpp +++ b/linden/indra/newview/llpolymesh.cpp | |||
@@ -278,7 +278,10 @@ BOOL LLPolyMeshSharedData::loadMesh( const char *fileName ) | |||
278 | // Read a chunk | 278 | // Read a chunk |
279 | //------------------------------------------------------------------------- | 279 | //------------------------------------------------------------------------- |
280 | char header[128]; /*Flawfinder: ignore*/ | 280 | char header[128]; /*Flawfinder: ignore*/ |
281 | fread(header, sizeof(char), 128, fp); | 281 | if (fread(header, sizeof(char), 128, fp) != 128) |
282 | { | ||
283 | llwarns << "Short read" << llendl; | ||
284 | } | ||
282 | 285 | ||
283 | //------------------------------------------------------------------------- | 286 | //------------------------------------------------------------------------- |
284 | // Check for proper binary header | 287 | // Check for proper binary header |