Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix format string generation in pkg_printf.
Vsevolod Stakhov committed 12 years ago
commit 9a89498766d9662a334ba61a95757b23b8289496
parent 444352a
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);
}