summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/FileUtil.cpp
diff options
context:
space:
mode:
authorhrydgard <hrydgard@gmail.com>2009-04-14 22:30:31 +0000
committerhrydgard <hrydgard@gmail.com>2009-04-14 22:30:31 +0000
commitd973a9e0011acd93e2ed306aa423d0aa9b516c4a (patch)
tree4be007deef61e86fb35a69a400dad476dbe5b388 /Source/Core/Common/Src/FileUtil.cpp
parentf9903f2054cc94195638e077a3142a4146acfad6 (diff)
DSP: Give the assembler and disassembler saner public APIs. Fix bug in fileutil ReadFileToString. More cleanup.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2970 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/FileUtil.cpp')
-rw-r--r--Source/Core/Common/Src/FileUtil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/Src/FileUtil.cpp b/Source/Core/Common/Src/FileUtil.cpp
index 8a16ae01dd..63464ae256 100644
--- a/Source/Core/Common/Src/FileUtil.cpp
+++ b/Source/Core/Common/Src/FileUtil.cpp
@@ -626,7 +626,7 @@ bool ReadFileToString(bool text_file, const char *filename, std::string *str)
fseek(f, 0, SEEK_SET);
char *buf = new char[len + 1];
buf[fread(buf, 1, len, f)] = 0;
- *str = std::string(buf);
+ *str = std::string(buf, len);
fclose(f);
delete [] buf;
return true;