mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-03-02 15:43:49 +01:00
Fix compilation error
This commit is contained in:
parent
64ca3bfe7c
commit
8e4cf43a52
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ static void check_killed_process(void)
|
|||
static void procps_get_cmdline(char *buf, int bufsz, const char *pid, const char *comm)
|
||||
{
|
||||
int sz;
|
||||
char filename[sizeof("/proc/%s/cmdline") + sizeof(int)*3];
|
||||
char filename[270];
|
||||
|
||||
snprintf(filename, sizeof(filename), "/proc/%s/cmdline", pid);
|
||||
sz = dm_file_to_buf(filename, buf, bufsz);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue