From cfb7075fa223fb7b5a97571bf56f7ce56d492339 Mon Sep 17 00:00:00 2001 From: Emanoil Kotsev Date: Thu, 27 Dec 2018 22:48:47 +0900 Subject: Fixed problem with access to tdewallet caused by commit 6ec26d85. This resolves issue #11 Signed-off-by: Emanoil Kotsev Signed-off-by: Michele Calgaro --- tdeio/misc/tdewalletd/tdewalletd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tdeio/misc/tdewalletd/tdewalletd.cpp b/tdeio/misc/tdewalletd/tdewalletd.cpp index 97e942c3a..99288bc8c 100644 --- a/tdeio/misc/tdewalletd/tdewalletd.cpp +++ b/tdeio/misc/tdewalletd/tdewalletd.cpp @@ -477,7 +477,7 @@ int TDEWalletD::internalOpen(const TQCString& appid, const TQString& wallet, boo setupDialog( kpd, w, appid, modal ); if (kpd->exec() == KDialog::Accepted) { p = kpd->password().utf8(); - int rc = b->open(TQByteArray().duplicate(p)); + int rc = b->open(TQByteArray().duplicate(p, p.length())); if (!b->isOpen()) { kpd->setPrompt(i18n("Error opening the wallet '%1'. Please try again.
(Error code %2: %3)").arg(TQStyleSheet::escape(wallet)).arg(rc).arg(TDEWallet::Backend::openRCToString(rc))); kpd->clearPassword(); -- cgit v1.2.1