Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
libpkg/pkg_macho.c: use memset instead of bzero
rilysh committed 2 years ago
commit ce77a8d91cff2609f4b75d38df1484fb4c27932b
parent fdf930ff4f83a10f022848b5b3d686c0eff23416
1 file changed +1 -1
modified libpkg/pkg_macho.c
@@ -307,7 +307,7 @@ pkg_arch_to_legacy(const char *arch, char *dest, size_t sz)
	const char *arch_name;
	bool is64;

-
	bzero(dest, sz);
+
	memset(dest, '\0', sz);
	/* Lower case the OS */
	while (arch[i] != ':' && arch[i] != '\0') {
		dest[i] = tolower(arch[i]);