Commit 79e51eeb authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(lock_file): Use %lu instead of %d in sprintf because

the variable named pid is unsigned long.
parent c19bb1de
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment