[LTP] ?==?utf-8?q? ?==?utf-8?q? [PATCH 1/2]?==?utf-8?q? llistxattr: added a new testcase to llistxattr02

Dejan Jovicevic Dejan.Jovicevic@rt-rk.com
Thu Oct 6 14:59:27 CEST 2016


 Hi!
> +int longpath_setup(void)
> +{
> + int i;
> +
> + for (i = 0; i < PATH_MAX + 2; i++)
> + longpathname[i] = 'a';
> +
> + return 0;
> +}

Why don't we just do memset() in the setup()?

memset(longpathname, 'a', sizeof(longpathname) - 1);

Should do the same.

--
Cyril Hrubis
chrubis@suse.czYes, that's a very good point. I'll change it up in v2.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20161006/4ec1afa1/attachment.html>


More information about the ltp mailing list