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

Cyril Hrubis chrubis@suse.cz
Tue Jul 30 13:05:55 CEST 2019


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


More information about the ltp mailing list