X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fxml%2FDocumentFile.cpp;h=f5ac226b40995e2390a982eab32998c9fbe96289;hp=c51ed79093b74f8b183db3e00b1823d2d730c7ec;hb=7ee10b64f4c116460ffef5784eb9ef87d3f2339c;hpb=1a1b334a0d2b023bd778f0a19665cc9017dbc94a diff --git a/source/xml/DocumentFile.cpp b/source/xml/DocumentFile.cpp index c51ed79..f5ac226 100644 --- a/source/xml/DocumentFile.cpp +++ b/source/xml/DocumentFile.cpp @@ -74,7 +74,7 @@ throw(RuntimeException) { const int size = lseek(stream, 0, SEEK_END); lseek(stream, 0, SEEK_SET); char* buffer = new char [size]; - read(stream, buffer, size); + ssize_t r = read(stream, buffer, size); close(stream); const_cast (this)->setContent(buffer, size); delete buffer;