Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix .pkgconf handling
Baptiste Daroussin committed 13 years ago
commit e5447357e8247b2ca9c2545324ee26f5569f2918
parent 9fe3042932bf09342351a6e1076dcd32543aa3be
1 file changed +1 -1
modified libpkg/utils.c
@@ -379,7 +379,7 @@ is_conf_file(const char *path, char *newpath, size_t len)
	if (n < 8)
		return (0);

-
	p = &path[len - 8];
+
	p = &path[n - 8];

	if (strcmp(p, ".pkgconf") == 0) {
		strlcpy(newpath, path, len);