summaryrefslogtreecommitdiffstats
path: root/kwallet/backend/kwalletbackend.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kwallet/backend/kwalletbackend.cc')
-rw-r--r--kwallet/backend/kwalletbackend.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/kwallet/backend/kwalletbackend.cc b/kwallet/backend/kwalletbackend.cc
index 72b74d062..571032e8f 100644
--- a/kwallet/backend/kwalletbackend.cc
+++ b/kwallet/backend/kwalletbackend.cc
@@ -422,7 +422,7 @@ int Backend::open(const TQByteArray& password) {
// compare hashes
int sz = encrypted.size();
for (int i = 0; i < 20; i++) {
- if (testhash[i] != encrypted.at(sz - 20 + i)) {
+ if (testhash[i] != static_cast<const char>(encrypted.tqat(sz - 20 + i))) {
encrypted.fill(0);
sha.reset();
return -8; // hash error.