Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 0c1e996665249c3b37b7b79c19aed83d > files > 1

psmisc-22.6-2mdv2008.1.src.rpm

diff -Naur psmisc-22.5/src/pstree.c psmisc-22.5.tpg/src/pstree.c
--- psmisc-22.5/src/pstree.c	2006-01-23 04:26:21.000000000 +0000
+++ psmisc-22.5.tpg/src/pstree.c	2007-07-08 16:20:49.000000000 +0000
@@ -616,7 +616,7 @@
               /* We now have readbuf with pid and cmd, and tmpptr+2
                * with the rest */
               /*printf("readbuf: %s\n", readbuf);*/
-              if (sscanf(readbuf, "%*d (%15[^)]", comm) == 1)
+              if (sscanf(readbuf, "%*d (%[^)]", comm) == 1)
               {
                 /*printf("tmpptr: %s\n", tmpptr+2);*/
                 if (sscanf(tmpptr+2, "%*c %d", &ppid) == 1)