summaryrefslogtreecommitdiff
path: root/data/aptitude/pkg_columnizer.diff
blob: 59b52f16112ec7ba94f06807495eb0e9b4f6a771 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff -ur aptitude-0.8.10/src/pkg_columnizer.cc aptitude-0.8.10+iPhone/src/pkg_columnizer.cc
--- aptitude-0.8.10/src/pkg_columnizer.cc	2017-08-19 07:59:07.000000000 -1000
+++ aptitude-0.8.10+iPhone/src/pkg_columnizer.cc	2018-08-31 15:13:18.000000000 -1000
@@ -70,8 +70,8 @@
   {30, false, false},   // origin
   {10, true, true},     // archive
   {9, false, false},    // sizechange
-  {strlen(PACKAGE), false, false},  // progname
-  {strlen(VERSION), false, false},  // progver
+  {(unsigned int)strlen(PACKAGE), false, false},  // progname
+  {(unsigned int)strlen(VERSION), false, false},  // progver
   {12, false, false},   // brokencount
   {16, false, false},   // diskusage, example (max): "Disk: -2,587 kB "
   {22, false, false},   // downloadsize, example (max): " DL: 2,586 kB/2,587 kB"
@@ -396,7 +396,8 @@
     case diskusage:
       {
 	size_t bufsize = 256;
-	char buf[bufsize] = "";
+	char buf[bufsize];
+	buf[0] = 0;
 	if (apt_cache_file && ((*apt_cache_file)->UsrSize() != 0))
 	  {
 	    char sign = ((*apt_cache_file)->UsrSize() > 0) ? '+' : '-';