summaryrefslogtreecommitdiff
path: root/src/filelock.c
diff options
context:
space:
mode:
authorFrancesco Potortì <pot@gnu.org>1993-09-08 15:28:44 +0000
committerFrancesco Potortì <pot@gnu.org>1993-09-08 15:28:44 +0000
commitb28bf2e224e3e62edf5dcd1d1fbd6de484f92727 (patch)
treefad3dc969ee462b455b1c66c1382890146da76ab /src/filelock.c
parent4eeca8e0021eecad6ea79f9b2491561ee8bb5645 (diff)
downloademacs-b28bf2e224e3e62edf5dcd1d1fbd6de484f92727.tar.gz
* filelock.c (fill_in_lock_short_file_name): corrected the crc
generation algorithm.
Diffstat (limited to 'src/filelock.c')
-rw-r--r--src/filelock.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/filelock.c b/src/filelock.c
index 73f6f4237e6..a79797e086b 100644
--- a/src/filelock.c
+++ b/src/filelock.c
@@ -98,8 +98,7 @@ fill_in_lock_short_file_name (lockfile, fn)
for (p = XSTRING (fn)->data; new = *p++; )
{
- new += crc.byte[7];
- crc.byte[7] = crc.byte[6];
+ new += crc.byte[6];
crc.byte[6] = crc.byte[5] + new;
crc.byte[5] = crc.byte[4];
crc.byte[4] = crc.byte[3];
@@ -177,7 +176,7 @@ lock_file_owner_name (lfname)
/* If HAVE_LONG_FILE_NAMES is not defined, the lock file name is the hex
representation of a 14-bytes CRC generated from the file name
and put in the Emacs lock directory (not very nice, but it works).
- (ie., /ka/king/junk.tex -> /!/ec92d3ed24a8f0). */
+ (ie., /ka/king/junk.tex -> /!/12a82c62f1c6da). */
void
lock_file (fn)