Mercurial > emacs
changeset 105746:41169068dcab
(procfs_ttyname): Fix sprintf format to match argument
type.
(system_process_attributes): Likewise.
author | Andreas Schwab <schwab@linux-m68k.org> |
---|---|
date | Sat, 24 Oct 2009 14:01:03 +0000 |
parents | 0a74e9b3065f |
children | 35e7b757c606 |
files | src/ChangeLog src/sysdep.c |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Sat Oct 24 06:34:26 2009 +0000 +++ b/src/ChangeLog Sat Oct 24 14:01:03 2009 +0000 @@ -1,3 +1,9 @@ +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.
--- a/src/sysdep.c Sat Oct 24 06:34:26 2009 +0000 +++ b/src/sysdep.c Sat Oct 24 14:01:03 2009 +0000 @@ -3303,7 +3303,7 @@ if (MINOR (rdev) >= minor_beg && MINOR (rdev) <= minor_end) { - sprintf (name + strlen (name), "%lu", MINOR (rdev)); + sprintf (name + strlen (name), "%u", MINOR (rdev)); break; } } @@ -3374,7 +3374,7 @@ CHECK_NUMBER_OR_FLOAT (pid); proc_id = FLOATP (pid) ? XFLOAT_DATA (pid) : XINT (pid); - sprintf (procfn, "/proc/%lu", proc_id); + sprintf (procfn, "/proc/%u", proc_id); if (stat (procfn, &st) < 0) return attrs;