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:
parent
091fd0ab54
commit
44728051fd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245837
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user