From 04ff7cb1c1f15d9fd46691c10f50153aa4d721d9 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 7 Apr 2008 20:38:52 +0000 Subject: Fix a recent regression reported in bug #1937042: "FEEBLE: Capitalization variations when searching for files" svn-id: r31445 --- common/file.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common') diff --git a/common/file.cpp b/common/file.cpp index 7fe2e1b655..4a7aed0e3d 100644 --- a/common/file.cpp +++ b/common/file.cpp @@ -172,7 +172,7 @@ static FILE *fopenNoCase(const String &filename, const String &directory, const // if (!file) { fileBuf.toUppercase(); - pathBuf += fileBuf; + pathBuf = dirBuf + fileBuf; file = fopen(pathBuf.c_str(), mode); } @@ -181,7 +181,7 @@ static FILE *fopenNoCase(const String &filename, const String &directory, const // if (!file) { fileBuf.toLowercase(); - pathBuf += fileBuf; + pathBuf = dirBuf + fileBuf; file = fopen(pathBuf.c_str(), mode); } @@ -191,7 +191,7 @@ static FILE *fopenNoCase(const String &filename, const String &directory, const if (!file) { fileBuf.toLowercase(); fileBuf.setChar(toupper(fileBuf[0]),0); - pathBuf += fileBuf; + pathBuf = dirBuf + fileBuf; file = fopen(pathBuf.c_str(), mode); } -- cgit v1.2.3