svn commit: r245837 - head/usr.sbin/pkg_install/lib

Baptiste Daroussin bapt at FreeBSD.org
Wed Jan 23 11:31:12 UTC 2013


On Wed, Jan 23, 2013 at 07:22:33AM +0000, Jason Evans wrote:
> Author: jasone
> Date: Wed Jan 23 07:22:33 2013
> New Revision: 245837
> URL: http://svnweb.freebsd.org/changeset/base/245837
> 
> Log:
>   Fix compilation errors.
> 
> Modified:
>   head/usr.sbin/pkg_install/lib/pkgng.c
> 
> Modified: head/usr.sbin/pkg_install/lib/pkgng.c
> ==============================================================================
> --- head/usr.sbin/pkg_install/lib/pkgng.c	Wed Jan 23 05:37:45 2013	(r245836)
> +++ head/usr.sbin/pkg_install/lib/pkgng.c	Wed Jan 23 07:22:33 2013	(r245837)
> @@ -50,8 +50,8 @@ void warnpkgng(void)
>  	if (pkgngdir == NULL)
>  		pkgngdir = "/var/db/pkg";
>  
> -	rc = snprintf(pkgngpath, sizeof(pkgngpath) "%s/local.sqlite", pkgngdir);
> -	if (rc >= sizeof(pkgngpath)) {
> +	rc = snprintf(pkgngpath, sizeof(pkgngpath), "%s/local.sqlite", pkgngdir);
> +	if ((size_t)rc >= sizeof(pkgngpath)) {
>  		warnx("path too long: %s/local.sqlite", pkgngdir);
>  		return;
>  	}
> _______________________________________________
> svn-src-all at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/svn-src-all
> To unsubscribe, send any mail to "svn-src-all-unsubscribe at freebsd.org"

thanks and sorry about that

regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20130123/b83bc283/attachment.sig>


More information about the svn-src-all mailing list