0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-01-06 02:26:34 +00:00
termux-packages/packages/aptitude/0107-char-array-initialization.patch
Chongyun Lee a734bf2478 new package: aptitude
Co-Authored-By: kawanakaiku <80381779+kawanakaiku@users.noreply.github.com>
2024-01-08 06:55:43 +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) ? '+' : '-';