From: Richard M. Stallman Date: Wed, 13 Aug 1997 15:27:49 +0000 (+0000) Subject: (lock_file): Use %lu instead of %d in sprintf because X-Git-Tag: emacs-20.1~613 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=79e51eeb5a13f126bcd5a4361949d3397c8e90ab;p=emacs.git (lock_file): Use %lu instead of %d in sprintf because the variable named pid is unsigned long. --- diff --git a/src/filelock.c b/src/filelock.c index c478233d7e1..55be9fb8628 100644 --- a/src/filelock.c +++ b/src/filelock.c @@ -347,7 +347,7 @@ lock_file (fn) /* Else consider breaking the lock */ locker = (char *) alloca (strlen (lock_info.user) + strlen (lock_info.host) + LOCK_PID_MAX + 9); - sprintf (locker, "%s@%s (pid %d)", lock_info.user, lock_info.host, + sprintf (locker, "%s@%s (pid %lu)", lock_info.user, lock_info.host, lock_info.pid); FREE_LOCK_INFO (lock_info);