0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-06-02 23:05:16 +00:00
Files
termux-packages/disabled-packages/aptitude/0107-char-array-initialization.patch
Ted Stein 47f0921d9e rmpkg(main/aptitude): Remove redundant/broken apt alternative
`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.
2025-04-01 18:24:15 +08:00

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) ? '+' : '-';