Hi Peter,

Peter Karlsson wrote:
> >By replacing fgets() in this location, I could make uqwk work, but as
> >there are plenty of other Fgets()s in the code, this seems to require
> >further analysis.
> Yes, there seems to be a bit of a misunderstanding between these files. Do 
> you have an example of a message that causes the crash? My guess would be a 
> message with a very long line, longer than BUFLEN (16K) characters.

Unfortunately, I don't have any mail spool left that triggers the
problem.
AFAIR those messages were mostly spam ... and they contained very long
lines, probably longer than BUFLEN.

Another measure I could think of, would be to make buf a dynamically
allocated array and malloc() BUFLEN bytes on program startup. I have not
checked the code whether this might be feasible.

Andre
-- 
Where principle is involved, be deaf to expediency. (James Webb)

Attachment: signature.asc
Description: Digital signature

Reply via email to