# HG changeset patch # User Richard M. Stallman # Date 871486069 0 # Node ID e33cf4ba547cfec8821134fb26c68b0d02f71204 # Parent c7cec07cb0e0e736da55284ea7867934fbdb2ab8 (lock_file): Use %lu instead of %d in sprintf because the variable named pid is unsigned long. diff -r c7cec07cb0e0 -r e33cf4ba547c src/filelock.c --- 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);