From 9eab2bfaf1a2f07451d0d40e9dc3323b0573a143 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 30 Dec 2008 18:24:39 -0800 Subject: Fix more "ignore return value" warnings from gcc 4.3. Jeremy --- source3/web/cgi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/web/cgi.c') diff --git a/source3/web/cgi.c b/source3/web/cgi.c index 49e83717c3..40f9ee6966 100644 --- a/source3/web/cgi.c +++ b/source3/web/cgi.c @@ -498,7 +498,9 @@ static void cgi_download(char *file) printf("Content-Length: %d\r\n\r\n", (int)st.st_size); while ((l=read(fd,buf,sizeof(buf)))>0) { - fwrite(buf, 1, l, stdout); + if (fwrite(buf, 1, l, stdout) != l) { + break; + } } close(fd); exit(0); -- cgit