X-Git-Url: http://cgit.sxemacs.org/?a=blobdiff_plain;f=src%2Ffilelock.c;h=957236e7544c2b35d015f1410c34849ca924327b;hb=56c8b099ccef8240d76c6f88c3f31d86ae22cfba;hp=a1e18b6b90306858341176069e7631308a81db74;hpb=a6c43f113a6323407b6786b98f867124515e7bf0;p=sxemacs diff --git a/src/filelock.c b/src/filelock.c index a1e18b6..957236e 100644 --- a/src/filelock.c +++ b/src/filelock.c @@ -297,7 +297,7 @@ void lock_file(Lisp_Object fn) struct gcpro gcpro1, gcpro2, gcpro3; Lisp_Object old_current_buffer; Lisp_Object subject_buf; - int sz, maxsz; + int sz, max_sz; if (inhibit_clash_detection) return; @@ -334,7 +334,7 @@ void lock_file(Lisp_Object fn) max_sz = strlen(lock_info.user) + strlen(lock_info.host) + LOCK_PID_MAX + 9; locker = (char *)alloca(max_sz); - sz = snprintf(locker, max_sz, "%s@%s (pid %lu)", + sz = snprintf(locker, max_sz, "%s@%s (pid %lu)", lock_info.user, lock_info.host, lock_info.pid); assert(sz>=0 && sz < max_sz);