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-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to