Re: [AD] compressing empty files |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2002-06-26, Vincent <Vincent.Penquerch@xxxxxxxxxx> wrote:
> > If `input' is an empty file, then:
> >
> > pack input packed ; pack u packed output
> >
> > produces a one byte file. A tentative patch is attached.
> > Probably not a good idea for 4.0.2 as I'm not 100% sure of it.
>
> Might well be a fix for the problem with pack_feof not
> really working I reported quite a while ago.
Maybe. Refresher?
My patch touched squished two bugs. One was an assumption in pack.c
that the input file was non-empty, the other was an assumption in file.c
that the PACKFILE buffer was non-empty.
--
王浩禎