diff options
Diffstat (limited to '')
-rw-r--r-- | src/archive.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/archive.cpp b/src/archive.cpp index d5f77c5..f29895c 100644 --- a/src/archive.cpp +++ b/src/archive.cpp | |||
@@ -33,7 +33,8 @@ void Bu::Archive::read( void *pData, int32_t nSize ) | |||
33 | if( nSize == 0 || pData == NULL ) | 33 | if( nSize == 0 || pData == NULL ) |
34 | return; | 34 | return; |
35 | 35 | ||
36 | rStream.read( (char *)pData, nSize ); | 36 | if( rStream.read( (char *)pData, nSize ) < nSize ) |
37 | throw Bu::ExceptionBase("Insufficient data to unarchive object."); | ||
37 | } | 38 | } |
38 | 39 | ||
39 | void Bu::Archive::close() | 40 | void Bu::Archive::close() |