From 2bb0467282360adc6090041065c1372074afc85d Mon Sep 17 00:00:00 2001 From: "colin%theblakes.com" Date: Fri, 11 Feb 2000 00:50:58 +0000 Subject: [PATCH] Only a read of 0 means EOF. r=dougt --- xpcom/io/nsFileStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpcom/io/nsFileStream.cpp b/xpcom/io/nsFileStream.cpp index 4b6e474c57a..876075c9848 100644 --- a/xpcom/io/nsFileStream.cpp +++ b/xpcom/io/nsFileStream.cpp @@ -61,7 +61,7 @@ PRInt32 nsInputStream::read(void* s, PRInt32 n) return 0; PRInt32 result = 0; mInputStream->Read((char*)s, n, (PRUint32*)&result); - if (result < n) + if (result == 0) set_at_eof(PR_TRUE); return result; } // nsInputStream::read