|
From: | Richard Stallman |
Subject: | Re: read in movemail.c |
Date: | Sat, 06 May 2006 10:25:15 -0400 |
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?
[Prev in Thread] | Current Thread | [Next in Thread] |