[LTP] [PATCH 1/2] llistxattr: added a new testcase to llistxattr02

Cyril Hrubis chrubis@suse.cz
Thu Oct 6 14:38:05 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.cz


More information about the ltp mailing list