Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Nov 2020 19:46:45 +0000
From:      Jessica Clarke <jrtc27@freebsd.org>
To:        Scott Long <scottl@FreeBSD.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r367689 - head/lib/libutil
Message-ID:  <E970F7CD-0DD4-4B89-94FB-161AA61E6582@freebsd.org>
In-Reply-To: <202011141904.0AEJ4bXA043999@repo.freebsd.org>
References:  <202011141904.0AEJ4bXA043999@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 14 Nov 2020, at 19:04, Scott Long <scottl@FreeBSD.org> wrote:
> @@ -66,10 +67,16 @@ getlocalbase(char *path, size_t pathlen)
> #endif
> 
> 	tmplen = strlcpy(path, tmppath, pathlen);
> -	if ((tmplen < 0) || (tmplen >= (ssize_t)pathlen)) {
> +	if ((tmplen < 0) || (tmplen >= pathlen)) {

I'd expect the LHS to give a compiler warning still.

Jess




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E970F7CD-0DD4-4B89-94FB-161AA61E6582>