summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmanoil Kotsev <deloptes@gmail.com>2018-12-27 22:48:47 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-12-27 23:03:42 +0900
commitcfb7075fa223fb7b5a97571bf56f7ce56d492339 (patch)
treea3ac764b13274855c4d70a7d27bbc432053286f5
parentd8177b405849215646b5c2524a1ec1df245301ff (diff)
downloadtdelibs-cfb7075fa223fb7b5a97571bf56f7ce56d492339.tar.gz
tdelibs-cfb7075fa223fb7b5a97571bf56f7ce56d492339.zip
Fixed problem with access to tdewallet caused by commit 6ec26d85.
This resolves issue #11 Signed-off-by: Emanoil Kotsev <deloptes@gmail.com> Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-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();