Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
HBSD: Use the right type for buffer manipulation
Shawn Webb committed 1 year ago
commit 7c3c63dfea2c47f839b79095e033ebaf9f7f479e
parent e831abf9d2607d6906c0d8763120cca9351cc24d
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;