From 1938d88c74281393f180f7ac3c77418b926ed6e6 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 23 Feb 2013 16:21:06 -0800 Subject: [PATCH] Fix regression introduced by July 10 filelock.c patch. * filelock.c (fill_in_lock_file_name): Fix crash caused by the 2012-07-10 patch to this file. Reported by Eli Zaretskii in and diagnosed by Andreas Schwab in . --- src/ChangeLog | 9 +++++++++ src/filelock.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 99b5e8734e9..914c005a046 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,12 @@ +2013-02-24 Paul Eggert + + Fix regression introduced by July 10 filelock.c patch. + * filelock.c (fill_in_lock_file_name): Fix crash caused by the + 2012-07-10 patch to this file. Reported by Eli Zaretskii in + + and diagnosed by Andreas Schwab in + . + 2013-02-18 Eli Zaretskii * w32proc.c (new_child): Avoid leaking handles if the subprocess diff --git a/src/filelock.c b/src/filelock.c index f21240f8340..ba55c1c146a 100644 --- a/src/filelock.c +++ b/src/filelock.c @@ -316,7 +316,7 @@ fill_in_lock_file_name (register char *lockfile, register Lisp_Object fn) p[1] = '.'; p[2] = '#'; - p = p + length + 2; + p = lockfile + length + 2; while (lstat (lockfile, &st) == 0 && !S_ISLNK (st.st_mode)) { -- 2.39.2