summaryrefslogtreecommitdiff
path: root/registry
diff options
context:
space:
mode:
authorJuergen Schmidt <jsc@openoffice.org>2011-02-24 10:51:05 +0100
committerJuergen Schmidt <jsc@openoffice.org>2011-02-24 10:51:05 +0100
commit228e4d2915a12802bf08303b750494c0f88e3d4a (patch)
tree30271fdfdc36b04e0c6b29ba74f7947501faaafa /registry
parent35c319c209f34e62cebd0193693727c30795c8cc (diff)
jsc340: i114847: fix name
Diffstat (limited to 'registry')
-rw-r--r--registry/tools/regcompare.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/registry/tools/regcompare.cxx b/registry/tools/regcompare.cxx
index d4bbe8c21ee2..ec8cdaa9e1a6 100644
--- a/registry/tools/regcompare.cxx
+++ b/registry/tools/regcompare.cxx
@@ -172,7 +172,9 @@ sal_Bool Options::initOptions(int ac, char* av[], sal_Bool bCmdFile)
{
bCmdFile = sal_True;
- m_program = av[0];
+ OString name(av[0]);
+ sal_Int32 index = name.lastIndexOf(SEPARATOR);
+ m_program = name.copy((index > 0 ? index+1 : 0));
if (ac < 2)
{
@@ -397,7 +399,7 @@ OString Options::prepareHelp()
help += " incompatible to r1. But if a service in r2 supports more properties as\n";
help += " in r1 and the new properties are 'optonal' it is compatible.\n";
help += " -u|U = additionally check types that are unpublished in registry 1.\n";
- help += " -h|-? = print this help message and exit.\n";
+ help += " -h|-? = print this help message and exit.\n\n";
help += prepareVersion();
return help;