Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
version: fix bad usage of pkg_printf
Baptiste Daroussin committed 1 year ago
commit 8dd2edca3350cd6d8a4fe2e8a6a59bf0cbda3ea7
parent bf0f7a3
1 file changed +4 -2
modified src/version.c
@@ -113,8 +113,10 @@ print_version(struct pkg *pkg, const char *source, const char *ver,
	if ((opt & VERSION_NOSTATUS) && limchar == key)
		return;

-
	if (opt & VERSION_ORIGIN)
-
		pkg_printf("%-34o %c", pkg, key);
+
	if (opt & VERSION_ORIGIN) {
+
		pkg_printf("%-34o", pkg);
+
		printf("%c", key);
+
	}
	else {
		cout = pkg_printf("%n-%v", pkg, pkg);
		cout = 35 - cout;