Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix error in humanize_number() call. On master this seems not to cause a problem, but on release-1.0 this least to 'pkg stats' failing an assertion an dumping core.
Matthew Seaman committed 13 years ago
commit d8689489759d976ea88434afc65c897fce25b574
parent 0a6a14e
1 file changed +2 -2
modified pkg/stats.c
@@ -90,7 +90,7 @@ exec_stats(int argc, char **argv)
		if (show_bytes)
			printf("\tDisk space occupied: %" PRId64 "\n\n", flatsize);
		else {
-
			humanize_number(size, sizeof(flatsize), flatsize, "B", HN_AUTOSCALE, 0);
+
			humanize_number(size, sizeof(size), flatsize, "B", HN_AUTOSCALE, 0);
			printf("\tDisk space occupied: %s\n\n", size);
		}
	}
@@ -106,7 +106,7 @@ exec_stats(int argc, char **argv)
		if (show_bytes)
			printf("\tTotal size of packages: %" PRId64 "\n", flatsize);
		else {
-
			humanize_number(size, sizeof(flatsize), flatsize, "B", HN_AUTOSCALE, 0);
+
			humanize_number(size, sizeof(size), flatsize, "B", HN_AUTOSCALE, 0);
			printf("\tTotal size of packages: %s\n", size);
		}
	}