summaryrefslogtreecommitdiffstats
path: root/rsc
diff options
context:
space:
mode:
Diffstat (limited to 'rsc')
-rw-r--r--rsc/source/tools/rsctools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/rsc/source/tools/rsctools.cxx b/rsc/source/tools/rsctools.cxx
index d760634f36b0..8131826b595a 100644
--- a/rsc/source/tools/rsctools.cxx
+++ b/rsc/source/tools/rsctools.cxx
@@ -131,7 +131,7 @@ rtl::OString OutputFile(const rtl::OString &rInput, const char * pExt)
if( nSepInd != -1 )
{
- return rInput.copy(0, rInput.getLength() - nSepInd).concat(OString(pExt));
+ return rInput.copy(0, nSepInd + 1).concat(OString(pExt));
}
return rInput.concat(OString(".")).concat(OString(pExt));