Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
memory: fix potential buffer overflow
Baptiste Daroussin committed 4 years ago
commit 8dd9e289642e3fec80028de05ab427bcf8971125
parent ce75303
1 file changed +1 -1
modified libpkg/utils.c
@@ -978,7 +978,7 @@ hidden_tempfile(char *buf, int buflen, const char *path)
		if (strlen(path) > NAME_MAX - 15)
			prefix = ".";
		snprintf(buf, buflen, "%s%s", prefix, path);
-
		nbuflen = NAME_MAX;
+
		nbuflen = NAME_MAX -1;
	}