summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorshuffle2 <godisgovernment@gmail.com>2015-09-26 19:08:15 -0700
committerTillmann Karras <tilkax@gmail.com>2015-09-28 05:40:52 +0200
commit2cb5c41fed211bd6c07dbe3288c4dbbda0e0c041 (patch)
tree33647fb6df79075db9bee9c7bbb8aae3f0c34602 /Source/Core
parentba96ca289d6038275f890e8eff77912a16ddbaf1 (diff)
HostGetString: Actually fill a string with data
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/PowerPC/MMU.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/Core/PowerPC/MMU.cpp b/Source/Core/Core/PowerPC/MMU.cpp
index 240887316f..9a06058bb1 100644
--- a/Source/Core/Core/PowerPC/MMU.cpp
+++ b/Source/Core/Core/PowerPC/MMU.cpp
@@ -637,6 +637,7 @@ std::string HostGetString(u32 address, size_t size)
u8 res = HostRead_U8(address);
if (!res)
break;
+ s += static_cast<char>(res);
++address;
} while (size == 0 || s.length() < size);
return s;