summaryrefslogtreecommitdiff
path: root/src/mem/fs_translating_port_proxy.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/fs_translating_port_proxy.cc')
-rw-r--r--src/mem/fs_translating_port_proxy.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/fs_translating_port_proxy.cc b/src/mem/fs_translating_port_proxy.cc
index bf0c076c6..9f1f7d019 100644
--- a/src/mem/fs_translating_port_proxy.cc
+++ b/src/mem/fs_translating_port_proxy.cc
@@ -140,7 +140,7 @@ CopyStringOut(ThreadContext *tc, char *dst, Addr vaddr, size_t maxlen)
bool foundNull = false;
while ((dst - start + 1) < maxlen && !foundNull) {
vp.readBlob(vaddr++, (uint8_t*)dst, 1);
- if (dst == '\0')
+ if (*dst == '\0')
foundNull = true;
dst++;
}