Author: miguel
Date: 2007-07-20 19:52:33 -0400 (Fri, 20 Jul 2007)
New Revision: 82400

Modified:
   trunk/moon/src/downloader.cpp
Log:
Do not try to write 0 elements and expect elements, fixes the downloader for 
extracting parts, and digger

Modified: trunk/moon/src/downloader.cpp
===================================================================
--- trunk/moon/src/downloader.cpp       2007-07-20 23:52:26 UTC (rev 82399)
+++ trunk/moon/src/downloader.cpp       2007-07-20 23:52:33 UTC (rev 82400)
@@ -190,7 +190,7 @@
                        file = NULL;
                        goto leave1;
                }
-               if (fwrite (buffer, n, 1, f) != 1){
+               if (n != 0 && fwrite (buffer, n, 1, f) != 1){
                        unlink (file);
                        file = NULL;
                        goto leave1;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to