diff options
author | Andras Timar <atimar@suse.com> | 2013-03-27 15:46:38 +0100 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2013-03-27 15:46:58 +0100 |
commit | 4653d73c577d5bf197e7e6c01876f85cf728e279 (patch) | |
tree | d789d52191ffc7a8f8e52d0429b3f50306e0ab5a /rsc | |
parent | 2b86de6137b5cc7cc09176b1d31240aaab4b61df (diff) |
fix extension replacer (rsc)
Change-Id: I0808aeedf87fd181380077f5cfd7b12dc3b33ef3
Diffstat (limited to 'rsc')
-rw-r--r-- | rsc/source/tools/rsctools.cxx | 2 |
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)); |