Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
79e51eeb
Commit
79e51eeb
authored
Aug 13, 1997
by
Richard M. Stallman
Browse files
(lock_file): Use %lu instead of %d in sprintf because
the variable named pid is unsigned long.
parent
c19bb1de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/filelock.c
src/filelock.c
+1
-1
No files found.
src/filelock.c
View file @
79e51eeb
...
@@ -347,7 +347,7 @@ lock_file (fn)
...
@@ -347,7 +347,7 @@ lock_file (fn)
/* Else consider breaking the lock */
/* Else consider breaking the lock */
locker
=
(
char
*
)
alloca
(
strlen
(
lock_info
.
user
)
+
strlen
(
lock_info
.
host
)
locker
=
(
char
*
)
alloca
(
strlen
(
lock_info
.
user
)
+
strlen
(
lock_info
.
host
)
+
LOCK_PID_MAX
+
9
);
+
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
);
lock_info
.
pid
);
FREE_LOCK_INFO
(
lock_info
);
FREE_LOCK_INFO
(
lock_info
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment