diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 17:00:32 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 17:00:32 +0000 |
commit | 3b77265bc282dd7295faed84b25d7c82c7103386 (patch) | |
tree | affc04d7fcfdd7896ab8139f345e8e278aedfd0f /cmdline/acqprogress.cc | |
parent | 1168596fe505411e1fd3a28a5aa710a75d68500d (diff) |
Fix segfault on really wide screens, #176052
Author: jgg
Date: 2003-02-02 22:24:11 GMT
Fix segfault on really wide screens, #176052
Diffstat (limited to 'cmdline/acqprogress.cc')
-rw-r--r-- | cmdline/acqprogress.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmdline/acqprogress.cc b/cmdline/acqprogress.cc index ee833923c..558558ade 100644 --- a/cmdline/acqprogress.cc +++ b/cmdline/acqprogress.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: acqprogress.cc,v 1.22 2001/05/27 04:46:43 jgg Exp $ +// $Id: acqprogress.cc,v 1.23 2003/02/02 22:24:11 jgg Exp $ /* ###################################################################### Acquire Progress - Command line progress meter @@ -152,7 +152,7 @@ bool AcqTextStatus::Pulse(pkgAcquire *Owner) enum {Long = 0,Medium,Short} Mode = Long; - char Buffer[1024]; + char Buffer[sizeof(BlankLine)]; char *End = Buffer + sizeof(Buffer); char *S = Buffer; if (ScreenWidth >= sizeof(Buffer)) |