[LTP] [PATCH v6 1/3] lib: alter find_free_loopdev()

Cyril Hrubis
2019-07-30T11:05:55Z

Hi!
> + if (path != NULL)
> + strcpy(path, buf);

This should be at least strncpy() since we have the path length, or we
may as well call set_dev_path(rc, path, path_len) here.

--
Cyril Hrubis
chrubis@suse.cz