htop icon indicating copy to clipboard operation
htop copied to clipboard

Fix for not completely updating command line

Open Komzpa opened this issue 6 years ago • 2 comments

Expectedly fixes #905. Didn't check. strncpy reports itself as non-zero-terminated safe.

Komzpa avatar Jul 09 '19 20:07 Komzpa

This is not the problem; all callers of setCommand ensure that command[len] == '\0'.

14mRh4X0r avatar Jul 26 '19 09:07 14mRh4X0r

… except the one in LinuxProcessList_readCmdlineFile, bug introduced in bd5d37f297fed2a42acbbd730e2af5ad45af6afa, but fixed with #812.

14mRh4X0r avatar Jul 26 '19 09:07 14mRh4X0r