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
10d66ec0
Commit
10d66ec0
authored
Oct 24, 2009
by
Andreas Schwab
Browse files
(procfs_ttyname): Fix sprintf format to match argument
type. (system_process_attributes): Likewise.
parent
a9a2a6db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
src/ChangeLog
src/ChangeLog
+6
-0
src/sysdep.c
src/sysdep.c
+2
-2
No files found.
src/ChangeLog
View file @
10d66ec0
2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
* sysdep.c (procfs_ttyname): Fix sprintf format to match argument
type.
(system_process_attributes): Likewise.
2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
* keymap.c (Fmake_sparse_keymap): Purecopy the name.
...
...
src/sysdep.c
View file @
10d66ec0
...
...
@@ -3303,7 +3303,7 @@ procfs_ttyname (int rdev)
if
(
MINOR
(
rdev
)
>=
minor_beg
&&
MINOR
(
rdev
)
<=
minor_end
)
{
sprintf
(
name
+
strlen
(
name
),
"%
l
u"
,
MINOR
(
rdev
));
sprintf
(
name
+
strlen
(
name
),
"%u"
,
MINOR
(
rdev
));
break
;
}
}
...
...
@@ -3374,7 +3374,7 @@ system_process_attributes (Lisp_Object pid)
CHECK_NUMBER_OR_FLOAT
(
pid
);
proc_id
=
FLOATP
(
pid
)
?
XFLOAT_DATA
(
pid
)
:
XINT
(
pid
);
sprintf
(
procfn
,
"/proc/%
l
u"
,
proc_id
);
sprintf
(
procfn
,
"/proc/%u"
,
proc_id
);
if
(
stat
(
procfn
,
&
st
)
<
0
)
return
attrs
;
...
...
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