# HG changeset patch # User Francesco Potort # Date 747502124 0 # Node ID 9d56bce1534ab1edc69e9bc36b9f6a0903a2b9dd # Parent ed9240986f40af0c937f5a4fc7bffee9bb144d91 * filelock.c (fill_in_lock_short_file_name): corrected the crc generation algorithm. diff -r ed9240986f40 -r 9d56bce1534a src/filelock.c --- a/src/filelock.c Wed Sep 08 07:39:14 1993 +0000 +++ b/src/filelock.c Wed Sep 08 15:28:44 1993 +0000 @@ -98,8 +98,7 @@ 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 @@ /* 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)