Bug#473710: The patch.
On Tue, Apr 01, 2008 at 10:06:31PM -0300, Otavio Salvador <otavio@debian.org> was heard to say:
> Daniel Burrows <dburrows@debian.org> writes:
> > Looks like I forgot to attach the patch.
> >
> > Daniel
> >
> > === modified file 'apt-pkg/contrib/configuration.cc'
> > --- apt-pkg/contrib/configuration.cc 2007-12-27 17:04:42 +0000
> > +++ apt-pkg/contrib/configuration.cc 2008-04-01 04:27:56 +0000
> > @@ -512,7 +512,8 @@
> > CurLine++;
> > // This should be made to work instead, but this is better than looping
> > if (F.fail() && !F.eof())
> > - return _error->Error(_("Line %d too long (max %lu)"), CurLine, sizeof(Buffer));
> > + return _error->Error(_("%s: Line %d too long (max %lu)"),
> > + FName.c_str(), CurLine, sizeof(Buffer));
> >
> > _strtabexpand(Buffer,sizeof(Buffer));
> > _strstrip(Buffer);
> >
>
> Ack! :-)
Ok, I've pushed that up. I'll have a fix for the limit soon for you
to review.
Daniel
Reply to: