aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/file.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/file.cpp b/common/file.cpp
index ecb05cd4a0..7eace25c82 100644
--- a/common/file.cpp
+++ b/common/file.cpp
@@ -57,14 +57,14 @@ bool File::open(const char *filename, int mode, byte encbyte) {
do
*ptr++ = toupper(*ptr);
while (*ptr);
- _handle = fopen(buf + pos, "rb");
+ _handle = fopen(buf, "rb");
}
if (_handle == NULL) {
ptr = buf + pos;
do
*ptr++ = tolower(*ptr);
while (*ptr);
- _handle = fopen(buf + pos, "rb");
+ _handle = fopen(buf, "rb");
}
if (_handle == NULL) {
debug(2, "File %s not found", filename);