]> code.delx.au - gnu-emacs/commitdiff
Fix regression introduced by July 10 filelock.c patch.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 24 Feb 2013 00:21:06 +0000 (16:21 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 24 Feb 2013 00:21:06 +0000 (16:21 -0800)
* filelock.c (fill_in_lock_file_name): Fix crash caused by the
2012-07-10 patch to this file.  Reported by Eli Zaretskii in
<http://lists.gnu.org/archive/html/emacs-devel/2013-02/msg00533.html>
and diagnosed by Andreas Schwab in
<http://lists.gnu.org/archive/html/emacs-devel/2013-02/msg00534.html>.

src/ChangeLog
src/filelock.c

index 99b5e8734e9abf4f3e1e02f1de5c884ef8eb72e2..914c005a0464e6b02d9bda2124f423a4af87c519 100644 (file)
@@ -1,3 +1,12 @@
+2013-02-24  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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
+       <http://lists.gnu.org/archive/html/emacs-devel/2013-02/msg00533.html>
+       and diagnosed by Andreas Schwab in
+       <http://lists.gnu.org/archive/html/emacs-devel/2013-02/msg00534.html>.
+
 2013-02-18  Eli Zaretskii  <eliz@gnu.org>
 
        * w32proc.c (new_child): Avoid leaking handles if the subprocess
index f21240f83403d3ccee2ce2b72d8aa73cff198113..ba55c1c146ae0a59a2d5bcd83cfed20b644a0f12 100644 (file)
@@ -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))
     {