diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-04-30 00:11:18 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-04-30 00:11:18 +0000 |
commit | 8d8462cb9ae235a91f1267069211a56c8adcc61c (patch) | |
tree | 5dfd2de22b76070748ec35d3c113d18bbe2ec1c6 /sys-process | |
parent | Bug #90077 - better ebuild. (diff) | |
download | historical-8d8462cb9ae235a91f1267069211a56c8adcc61c.tar.gz historical-8d8462cb9ae235a91f1267069211a56c8adcc61c.tar.bz2 historical-8d8462cb9ae235a91f1267069211a56c8adcc61c.zip |
make sure we put a field width on the sscanf
Package-Manager: portage-2.0.51.20-r5
Diffstat (limited to 'sys-process')
-rw-r--r-- | sys-process/psmisc/Manifest | 2 | ||||
-rw-r--r-- | sys-process/psmisc/files/psmisc-21.6-scanf.patch | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys-process/psmisc/Manifest b/sys-process/psmisc/Manifest index d48c9aff0d31..85d852b14b49 100644 --- a/sys-process/psmisc/Manifest +++ b/sys-process/psmisc/Manifest @@ -11,4 +11,4 @@ MD5 277920d9195611033bc0e32e98474466 files/psmisc-21.5-selinux.diff.bz2 7783 MD5 6f859fa9957d5cbc362d55aa098dfd0b files/digest-psmisc-21.6 63 MD5 70563076a6e89ee1471085d19884f8c5 files/psmisc-21.6-nonls.patch 388 MD5 b82b550c4133bb8a25ab43316ca04fc4 files/psmisc-21.6-selinux.diff.bz2 7709 -MD5 52e44060d281ae2aee5e7dfaaef1c2d3 files/psmisc-21.6-scanf.patch 1858 +MD5 c02f21e37725ecf3815688b08fb8606a files/psmisc-21.6-scanf.patch 1860 diff --git a/sys-process/psmisc/files/psmisc-21.6-scanf.patch b/sys-process/psmisc/files/psmisc-21.6-scanf.patch index 18e18aa29149..7bc566625107 100644 --- a/sys-process/psmisc/files/psmisc-21.6-scanf.patch +++ b/sys-process/psmisc/files/psmisc-21.6-scanf.patch @@ -44,7 +44,7 @@ diff -u -r1.23 pstree.c * with the rest */ /*printf("readbuf: %s\n", readbuf);*/ - if (sscanf(readbuf, "%*d (%15c", comm) == 1) -+ if (sscanf(readbuf, "%*d (%[^)]", comm) == 1) ++ if (sscanf(readbuf, "%*d (%15[^)]", comm) == 1) { /*printf("tmpptr: %s\n", tmpptr+2);*/ if (sscanf(tmpptr+2, "%*c %d", &ppid) == 1) |