nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] fgets bug in mhbuildsbr.c

2005-05-12 08:08:18
I  patched  my version  of  mhbuildsbr.c  by adding  a  wrapper  to fgets
th at determines the  proper number of  characters read in.   Then I
changed  the for loop to  make use of this information  instead of simply
looking  for the first 0x00 character.  This is probably an  inefficient
solution.  My guess is that >  a better solution  would be to  make use  of
fread instead,  and do all  the line detection stuff manually.

I've attached my patch to this email as well.

David,

I'm trying to reproduce this, but this message is pretty messed up.  The
zip file you've included has no NULLs and is only 6 bytes long.  Have you
been bitten by your own bug?

It seems when you ran mhbuild over this message, it mangled your example.
I'm trying to reproduce this bug, but I'm not having any luck.

-- 
    JB


_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
http://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>