Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Silence -Wstring-plus-int warning
Baptiste Daroussin committed 6 years ago
commit 42c700bb3d172c230ab19faa351eb35fedc155d2
parent 12471e8
1 file changed +1 -1
modified libpkg/pkg_config.c
@@ -995,7 +995,7 @@ pkg_ini(const char *path, const char *reposdir, pkg_init_flags flags)
	}

	if (path == NULL)
-
		conffd = openat(ctx.rootfd, PREFIX"/etc/pkg.conf" + 1, 0);
+
		conffd = openat(ctx.rootfd, &PREFIX"/etc/pkg.conf"[1], 0);
	else
		conffd = open(path, O_RDONLY);
	if (conffd == -1 && errno != ENOENT) {