Commit 3a2961de authored by Lehner Florian's avatar Lehner Florian

Fix calculation of available space

Signed-off-by: default avatarLehner Florian <dev@der-flo.net>
parent 3da9774a
......@@ -455,7 +455,7 @@ static void prg_cache_load(void)
sizeof(line) - 5)
continue;
safe_strncpy(line + procfdlen - PATH_FD_SUFFl, PATH_CMDLINE,
sizeof(line) - procfdlen - PATH_FD_SUFFl);
sizeof(line) - procfdlen + PATH_FD_SUFFl);
fd = open(line, O_RDONLY);
if (fd < 0)
continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment