summaryrefslogtreecommitdiffstats
path: root/tdeio/misc/tdewalletd
diff options
context:
space:
mode:
Diffstat (limited to 'tdeio/misc/tdewalletd')
-rw-r--r--tdeio/misc/tdewalletd/tdewalletd.cpp2
1 files changed, 1 insertions, 1 deletions
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("<qt>Error opening the wallet '<b>%1</b>'. Please try again.<br>(Error code %2: %3)").arg(TQStyleSheet::escape(wallet)).arg(rc).arg(TDEWallet::Backend::openRCToString(rc)));
kpd->clearPassword();