Reference: xorg/app/xauth Update DISPLAY parsing to work with new launchd paths in Yosemite

Alan Coopersmith alan.coopersmith at oracle.com
Wed Dec 31 09:47:57 PST 2014


On 12/31/14 08:11 AM, Colin Harrison wrote:
> Hi,
>
> In the latest commit to xauth there are two added instances of:
>
> buf[sizeof(path) - 1] = '\0';
>
> shouldn't those be?
> path[sizeof(path) - 1] = '\0';

Looks like it, for those OS'es without a good enough libc to have strlcpy.

-- 
	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc


More information about the xorg-devel mailing list