diff options
| author | Richard M. Stallman | 1997-08-13 15:27:49 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-08-13 15:27:49 +0000 |
| commit | 79e51eeb5a13f126bcd5a4361949d3397c8e90ab (patch) | |
| tree | 584a6d51ea23edacc38237d81fca0d62d37ac8a1 | |
| parent | c19bb1de2958d17096f18cb4038019573ea19f67 (diff) | |
| download | emacs-79e51eeb5a13f126bcd5a4361949d3397c8e90ab.tar.gz emacs-79e51eeb5a13f126bcd5a4361949d3397c8e90ab.zip | |
(lock_file): Use %lu instead of %d in sprintf because
the variable named pid is unsigned long.
| -rw-r--r-- | src/filelock.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
| 347 | /* Else consider breaking the lock */ | 347 | /* Else consider breaking the lock */ |
| 348 | locker = (char *) alloca (strlen (lock_info.user) + strlen (lock_info.host) | 348 | locker = (char *) alloca (strlen (lock_info.user) + strlen (lock_info.host) |
| 349 | + LOCK_PID_MAX + 9); | 349 | + LOCK_PID_MAX + 9); |
| 350 | sprintf (locker, "%s@%s (pid %d)", lock_info.user, lock_info.host, | 350 | sprintf (locker, "%s@%s (pid %lu)", lock_info.user, lock_info.host, |
| 351 | lock_info.pid); | 351 | lock_info.pid); |
| 352 | FREE_LOCK_INFO (lock_info); | 352 | FREE_LOCK_INFO (lock_info); |
| 353 | 353 | ||