summaryrefslogtreecommitdiff
path: root/lib/win32
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2011-03-26 23:49:48 +0000
committerChris Wilson <chris+github@qwirx.com>2011-03-26 23:49:48 +0000
commita6ea3ec4d7f048ae16637532a1e9d7269b623eba (patch)
tree5a1cc9562208463c6f478cc4d624c12d9b95769b /lib/win32
parent375c0260c5a341b4a359119d88d99ef527b4a4e2 (diff)
Fix off-by-one error in path translation.
Diffstat (limited to 'lib/win32')
-rw-r--r--lib/win32/emu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/win32/emu.cpp b/lib/win32/emu.cpp
index 18a37de7..4c6b2326 100644
--- a/lib/win32/emu.cpp
+++ b/lib/win32/emu.cpp
@@ -410,7 +410,7 @@ std::string ConvertPathToAbsoluteUnicode(const char *pFileName)
// Must be relative. We need to get the
// current directory to make it absolute.
tmpStr += wd;
- if (tmpStr[tmpStr.length()] != '\\')
+ if (tmpStr[tmpStr.length()-1] != '\\')
{
tmpStr += '\\';
}