Sophie

Sophie

distrib > Mandriva > 2007.1 > x86_64 > by-pkgid > a2dc265b6404e0fdf3f080d197a8ca5c > files > 1

psmisc-22.2-2mdv2007.0.src.rpm

--- psmisc-21.9/src/pstree.c.orig	2005-11-25 23:14:48.000000000 +0100
+++ psmisc-21.9/src/pstree.c	2005-12-23 20:41:32.000000000 +0100
@@ -616,7 +616,7 @@ read_proc (void)
               /* 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)