Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix crash when using external merge tool
Baptiste Daroussin committed 2 months ago
commit 7b9899193135c33a91ea0b5774b47de017c39b2e
parent 5bbaecb
1 file changed +1 -1
modified libpkg/pkg_add.c
@@ -152,7 +152,7 @@ merge_with_external_tool(const char *merge_tool, struct pkg_config_file *lcf,

	fclose(inout[0]);
	fclose(inout[1]);
-
	for (int i = 0; i < sizeof(tmp_files); i++) {
+
	for (int i = 0; i < NELEM(tmp_files); i++) {
		unlink(tmp_files[i].path);
	}