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 | de4c9f7acd4a1d18b16026a303fbae693d0f03a4 (patch) | |
tree | 016decbe780387c5eccd739ed37f165a4f070926 /sys-process | |
parent | Bug #90077 - better ebuild. (diff) | |
download | gentoo-2-de4c9f7acd4a1d18b16026a303fbae693d0f03a4.tar.gz gentoo-2-de4c9f7acd4a1d18b16026a303fbae693d0f03a4.tar.bz2 gentoo-2-de4c9f7acd4a1d18b16026a303fbae693d0f03a4.zip |
make sure we put a field width on the sscanf
(Portage version: 2.0.51.20-r5)
Diffstat (limited to 'sys-process')
-rw-r--r-- | sys-process/psmisc/files/psmisc-21.6-scanf.patch | 2 |
1 files changed, 1 insertions, 1 deletions
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) |