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)