1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-27 08:00:11 +00:00

Fix compilation errors.

This commit is contained in:
Jason Evans 2013-01-23 07:22:33 +00:00
parent 091fd0ab54
commit 44728051fd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245837

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