From 228e4d2915a12802bf08303b750494c0f88e3d4a Mon Sep 17 00:00:00 2001 From: Juergen Schmidt Date: Thu, 24 Feb 2011 10:51:05 +0100 Subject: jsc340: i114847: fix name --- registry/tools/regcompare.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'registry') 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; -- cgit