projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Proposed fix for coverity #29372
[supertux.git]
/
src
/
physfs
/
physfs_file_system.cpp
diff --git
a/src/physfs/physfs_file_system.cpp
b/src/physfs/physfs_file_system.cpp
index
15d9f76
..
65ac067
100644
(file)
--- a/
src/physfs/physfs_file_system.cpp
+++ b/
src/physfs/physfs_file_system.cpp
@@
-16,7
+16,7
@@
#include "physfs/physfs_file_system.hpp"
#include "physfs/physfs_file_system.hpp"
-#include "physfs/ifile_stream.hpp"
+#include "physfs/
buffered_
ifile_stream.hpp"
PhysFSFileSystem::PhysFSFileSystem()
{
PhysFSFileSystem::PhysFSFileSystem()
{
@@
-40,7
+40,8
@@
PhysFSFileSystem::open_directory(const std::string& pathname)
std::unique_ptr<std::istream>
PhysFSFileSystem::open_file(const std::string& filename)
{
std::unique_ptr<std::istream>
PhysFSFileSystem::open_file(const std::string& filename)
{
- return std::unique_ptr<std::istream>(new IFileStream(filename));
+ BufferedIFileStream* stream = new BufferedIFileStream(filename);
+ return std::unique_ptr<std::istream>(stream->get_stream());
}
/* EOF */
}
/* EOF */