summaryrefslogtreecommitdiff
path: root/ratox.c
diff options
context:
space:
mode:
authorpranomostro <pranomestro@gmail.com>2016-11-08 15:01:20 +0100
committerz3bra <contactatz3bradotorg>2016-11-08 16:47:52 +0100
commit0caaa7794db0045a23a06db21613bdad5040c576 (patch)
tree13c89245e63e99ea264b8cbe60e16a625986ef4e /ratox.c
parent31ee5a589ded07ce25d180566f8a6cb532e5ee96 (diff)
Fix argument passing order of tox_pass_decrypt.
Diffstat (limited to 'ratox.c')
-rw-r--r--ratox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ratox.c b/ratox.c
index 85dede1..9fb9792 100644
--- a/ratox.c
+++ b/ratox.c
@@ -957,7 +957,7 @@ reprompt1:
if (!encryptsavefile)
logmsg("Data : %s > Encrypted, but saving unencrypted\n", savefile);
while (readpass("Data : Passphrase > ", &passphrase, &pplen) < 0 ||
- !tox_pass_decrypt(data, sz, passphrase, pplen, intermediate, NULL));
+ !tox_pass_decrypt(intermediate, sz, passphrase, pplen, data, NULL));
} else {
toxopt->savedata_length = sz;
data = malloc(sz);