Fix compilation errors.

This commit is contained in:
jasone 2013-01-23 07:22:33 +00:00
parent 04c67c78f5
commit 9512369da2

View File

@ -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;
}