Re: Huh .. mail_list_magic[0].pattern gets written to the summary file!
Philip Van Hoof <[email protected]>
| Newsgroups | gmane.comp.gnome.evolution.devel |
|---|---|
| Message-ID | <1152663093.11808.3.camel__11485.9017813162$1152680995$gmane$org@localhost.localdomain> |
On Tue, 2006-07-11 at 22:51 +0200, Philip Van Hoof wrote:
> On Tue, 2006-07-11 at 22:28 +0200, Philip Van Hoof wrote:
> > I didn't alter the code that writes the summary file. So I'm confident
> > that this bug also happens for people who aren't using the mmap patches
> > yet.
Yes I did. And the very very small change I did caused this
behaviour ;-).
len--;
if (len != 0)
fwrite (str, len, 1, out);
What if len is -1 and str is ""? That is what happened ;-)
I closed the bugreport. You can ignore this thread. It was my own fault.
> Somebody definitely needs to explain me how he managed to write
> mail_list_magic[0].pattern into the summary file of some of my
> mailing> lists ;-)!
Well ;-). fwrite ("", -1, 1, out)
--
Philip Van Hoof, software developer at x-tend
home: me at pvanhoof dot be
gnome: pvanhoof at gnome dot org
work: vanhoof at x-tend dot be
http://www.pvanhoof.be - http://www.x-tend.be