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

Petr Vorel
2019-07-31T12:05:03Z

Hi Xu,

Reviewed-by: Petr Vorel <pvorel@suse.cz>

...
> +++ b/lib/tst_device.c
...
> - return 0;
> + if (path != NULL)
> + strncpy(path, buf, path_len);
Is it safe to assume that path_len is *always* < 1024 (size of buf)?
> + return i;
...

Kind regards,
Petr