changeset 20593:d1699afbc43e

(MAKE_LOCK_NAME): Use size_byte.
author Richard M. Stallman <rms@gnu.org>
date Mon, 05 Jan 1998 17:32:08 +0000
parents 1ffd16d0b17c
children 6e5a5afbe628
files src/filelock.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/filelock.c	Mon Jan 05 17:30:19 1998 +0000
+++ b/src/filelock.c	Mon Jan 05 17:32:08 1998 +0000
@@ -100,7 +100,7 @@
 /* Write the name of the lock file for FN into LFNAME.  Length will be
    that of FN plus two more for the leading `.#' plus one for the null.  */
 #define MAKE_LOCK_NAME(lock, file) \
-  (lock = (char *) alloca (XSTRING (file)->size + 2 + 1), \
+  (lock = (char *) alloca (XSTRING (file)->size_byte + 2 + 1), \
    fill_in_lock_file_name (lock, (file)))
 
 static void