tFix argument passing order of tox_pass_decrypt. - ratox - FIFO based tox client
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 0caaa7794db0045a23a06db21613bdad5040c576
 (DIR) parent 31ee5a589ded07ce25d180566f8a6cb532e5ee96
 (HTM) Author: pranomostro <pranomestro@gmail.com>
       Date:   Tue,  8 Nov 2016 15:01:20 +0100
       
       Fix argument passing order of tox_pass_decrypt.
       
       Diffstat:
         M ratox.c                             |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/ratox.c b/ratox.c
       t@@ -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);