summaryrefslogtreecommitdiff
path: root/rsc
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2013-03-27 15:46:38 +0100
committerAndras Timar <atimar@suse.com>2013-03-27 15:46:58 +0100
commit4653d73c577d5bf197e7e6c01876f85cf728e279 (patch)
treed789d52191ffc7a8f8e52d0429b3f50306e0ab5a /rsc
parent2b86de6137b5cc7cc09176b1d31240aaab4b61df (diff)
fix extension replacer (rsc)
Change-Id: I0808aeedf87fd181380077f5cfd7b12dc3b33ef3
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));