changeset 19335:e33cf4ba547c

(lock_file): Use %lu instead of %d in sprintf because the variable named pid is unsigned long.
author Richard M. Stallman <rms@gnu.org>
date Wed, 13 Aug 1997 15:27:49 +0000
parents c7cec07cb0e0
children 46e497d9add2
files src/filelock.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/filelock.c	Wed Aug 13 12:46:21 1997 +0000
+++ b/src/filelock.c	Wed Aug 13 15:27:49 1997 +0000
@@ -347,7 +347,7 @@
   /* 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);