Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
HBSD: Use the right type for buffer manipulation
Shawn Webb committed 1 year ago
commit 7c3c63dfea2c47f839b79095e033ebaf9f7f479e
parent e831abf
1 file changed +2 -2
modified libpkg/pkg_add.c
@@ -143,8 +143,8 @@ merge_with_external_tool(const char *merge_tool, struct pkg_config_file *lcf,
	}

	char command[MAXPATHLEN];
-
	for (int i = 0; i < sizeof(command) - 1 && *merge_tool != '\0'; i++, merge_tool++) {
-
		int j;
+
	for (size_t i = 0; i < sizeof(command) - 1 && *merge_tool != '\0'; i++, merge_tool++) {
+
		size_t j;

		if (*merge_tool != '%') {
			command[i] = *merge_tool;