Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix format string generation in pkg_printf.
Vsevolod Stakhov committed 12 years ago
commit 9a89498766d9662a334ba61a95757b23b8289496
parent 444352a3e45747c17ddb9b6bb88ac34cd6a8590c
1 file changed +1 -1
modified libpkg/pkg_printf.c
@@ -1919,7 +1919,7 @@ gen_format(char *buf, size_t buflen, unsigned flags, const char *tail)
	buf[bp++] = '*';
	buf[bp] = '\0';

-
	strlcat(buf, tail, sizeof(buf));
+
	strlcat(buf, tail, buflen);

	return (buf);
}