From b86c0d357f2abc6910428a10cdbdbf3d0a3e5d1f Mon Sep 17 00:00:00 2001 From: Loui Chang Date: Sun, 12 Oct 2014 23:00:52 -0400 Subject: [PATCH] Update toxencryptsave api change. Signed-off-by: Loui Chang --- src/toxic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/toxic.c b/src/toxic.c index 3f6a418..57299e1 100644 --- a/src/toxic.c +++ b/src/toxic.c @@ -648,7 +648,7 @@ static void load_data(Tox *m, char *path) exit_toxic_err("failed in load_data", FATALERR_FILEOP); } - bool is_encrypted = tox_is_data_encrypted((uint8_t *) buf); + bool is_encrypted = tox_is_save_encrypted((uint8_t *) buf); /* attempt to encrypt an already encrypted data file */ if (arg_opts.encrypt_data && is_encrypted)