projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: static array larger than necessary
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
list.c
diff --git
a/src/bin/lttng/commands/list.c
b/src/bin/lttng/commands/list.c
index 8c1d5af87fd25bfb638aa946fdd13a771afe4a6c..87935393edabbe076628d11a8a1f78c818225309 100644
(file)
--- a/
src/bin/lttng/commands/list.c
+++ b/
src/bin/lttng/commands/list.c
@@
-107,7
+107,7
@@
static char *get_cmdline_by_pid(pid_t pid)
int ret;
FILE *fp;
char *cmdline = NULL;
- char path[2
4
]; /* Can't go bigger than /proc/65535/cmdline */
+ char path[2
0
]; /* Can't go bigger than /proc/65535/cmdline */
snprintf(path, sizeof(path), "/proc/%d/cmdline", pid);
fp = fopen(path, "r");
This page took
0.026465 seconds
and
5
git commands to generate.