Comment 6 for bug 391035

Revision history for this message
Jean-Louis Dupond (dupondje) wrote :

diff -ru aptitude/src/generic/apt/acqprogress.cc aptitude-0.4.11.11/src/generic/apt/acqprogress.cc
--- aptitude/src/generic/apt/acqprogress.cc 2009-10-19 23:42:25.937618128 +0200
+++ aptitude-0.4.11.11/src/generic/apt/acqprogress.cc 2008-11-20 04:17:12.000000000 +0100
@@ -256,7 +256,7 @@

    if (CurrentCPS != 0)
    {
- char Tmp[400];
+ char Tmp[300];
       unsigned long ETA = (unsigned long)((TotalBytes - CurrentBytes)/CurrentCPS);
       sprintf(Tmp," %sB/s %s",SizeToStr(CurrentCPS).c_str(),TimeToStr(ETA).c_str());
       unsigned int Len = strlen(Buffer);
diff -ru aptitude/src/generic/apt/acqprogress.h aptitude-0.4.11.11/src/generic/apt/acqprogress.h
--- aptitude/src/generic/apt/acqprogress.h 2009-10-20 19:48:33.625307969 +0200
+++ aptitude-0.4.11.11/src/generic/apt/acqprogress.h 2008-11-20 04:17:12.000000000 +0100
@@ -20,7 +20,7 @@
 class AcqTextStatus : public sigc::trackable
 {
    unsigned int &ScreenWidth;
- char BlankLine[400];
+ char BlankLine[300];
    unsigned long ID;
    unsigned long Quiet;

this fixes the bug!