mirror of
https://github.com/termux/termux-packages.git
synced 2025-06-02 23:05:16 +00:00
`aptitude`'s unique functionality is a TUI alternative to `apt`. It hardcodes the belief that you must be root to change packages, and attempting to make any changes prompts you to become root, which obviously won't work for most users. I didn't try, but if it did work, it would obviously do something bad. Its `apt`-alike non-interactive use (`aptitude install`, etc) appears to work fine without root, but looks to be basically identical to `apt` proper.
14 lines
359 B
Diff
14 lines
359 B
Diff
--- a/src/pkg_columnizer.cc
|
|
+++ b/src/pkg_columnizer.cc
|
|
@@ -397,8 +397,8 @@
|
|
break;
|
|
case diskusage:
|
|
{
|
|
- size_t bufsize = 256;
|
|
- char buf[bufsize] = "";
|
|
+ const size_t bufsize = 256;
|
|
+ char buf[bufsize] = {};
|
|
if (apt_cache_file && ((*apt_cache_file)->UsrSize() != 0))
|
|
{
|
|
char sign = ((*apt_cache_file)->UsrSize() > 0) ? '+' : '-';
|