From bc56336bb4501884257352446abb60713cef6452 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 9 Jun 2015 18:35:25 +0200 Subject: patch 7.4.730 Problem: When setting the crypt key and using a swap file, text may be encrypted twice or unencrypted text remains in the swap file. (Issue 369) Solution: Call ml_preserve() before re-encrypting. Set correct index for next pointer block. --- src/proto/memline.pro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/proto/memline.pro') diff --git a/src/proto/memline.pro b/src/proto/memline.pro index 62a3ce640..ff5d24a7c 100644 --- a/src/proto/memline.pro +++ b/src/proto/memline.pro @@ -1,6 +1,6 @@ /* memline.c */ int ml_open __ARGS((buf_T *buf)); -void ml_set_crypt_key __ARGS((buf_T *buf, char_u *old_key, int old_cm)); +void ml_set_crypt_key __ARGS((buf_T *buf, char_u *old_key, char_u *old_cm)); void ml_setname __ARGS((buf_T *buf)); void ml_open_files __ARGS((void)); void ml_open_file __ARGS((buf_T *buf)); -- cgit v1.2.3