summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-04-30 00:11:18 +0000
committerMike Frysinger <vapier@gentoo.org>2005-04-30 00:11:18 +0000
commitde4c9f7acd4a1d18b16026a303fbae693d0f03a4 (patch)
tree016decbe780387c5eccd739ed37f165a4f070926 /sys-process
parentBug #90077 - better ebuild. (diff)
downloadgentoo-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.patch2
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)