Fix: static array larger than necessary
[lttng-tools.git] / src / bin / lttng / commands / list.c
index fb034a3da2a23e7b7503164853363427b00f2ea2..fee605fa82ff11a3767feba7f56d565bd6aba899 100644 (file)
@@ -104,7 +104,7 @@ static char *get_cmdline_by_pid(pid_t pid)
        int ret;
        FILE *fp;
        char *cmdline = NULL;
-       char path[24];  /* Can't go bigger than /proc/65535/cmdline */
+       char path[20];  /* Can't go bigger than /proc/65535/cmdline */
 
        snprintf(path, sizeof(path), "/proc/%d/cmdline", pid);
        fp = fopen(path, "r");
This page took 0.023703 seconds and 4 git commands to generate.