shell_exec expects a string that is null-terminated but if line passed to strncpy is equal or bigger than the buffer it will not produce a null-terminated command. Jira: ZEP-2474 Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>