9e76689168
- Fix segfault in pstree, patch by Tetsuo Handa (bnc#718915). OBS-URL: https://build.opensuse.org/request/show/86232 OBS-URL: https://build.opensuse.org/package/show/Base:System/psmisc?expand=0&rev=44
20 lines
627 B
Diff
20 lines
627 B
Diff
From: Tetsuo Handa <from-suse@I-love.SAKURA.ne.jp>
|
|
|
|
See bnc#718915#c1
|
|
|
|
---
|
|
src/pstree.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- psmisc-22.14.orig/src/pstree.c
|
|
+++ psmisc-22.14/src/pstree.c
|
|
@@ -70,7 +70,7 @@ extern const char *__progname;
|
|
#define VT_HD "w"
|
|
|
|
typedef struct _proc {
|
|
- char comm[COMM_LEN + 1];
|
|
+ char comm[COMM_LEN + 2 + 1]; /* add another 2 for thread brackets */
|
|
char **argv; /* only used : argv[0] is 1st arg; undef if argc < 1 */
|
|
int argc; /* with -a : number of arguments, -1 if swapped */
|
|
pid_t pid;
|