emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: read in movemail.c


From: Dan Nicolaescu
Subject: Re: read in movemail.c
Date: Sat, 06 May 2006 10:48:32 -0700

Richard Stallman <address@hidden> writes:

  >     nread might be -1 on error from read, so then the call to write would 
be 
  >     bad, as the third argument is a size_t (unsigned) so -1 becomes a large 
  >     value.  Better is to check for -1 and 0 (end of file) before doing the 
  >     write.
  > 
  > Could you install a fix and ack?

You've already done this:

2006-04-29  Richard Stallman  <address@hidden>

        * movemail.c (main): Check for negative value from `read'.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]