--- sendf.c.orig	2007-08-13 16:57:13.000000000 +0800
+++ sendf.c	2007-08-13 18:19:47.000000000 +0800
@@ -419,7 +419,14 @@
       wrote = data->set.fwrite_func(ptr, 1, len, data->set.out);
     }
     else {
-      wrote = len;
+      /*Write out the zero size file only when the file is not a NL in it
+       *The reason to do so is because NL is not counted as one char in some
+       *platform other than UNIX/Linux?
+       */
+      if(*ptr != '\n')
+        wrote = data->set.fwrite_func(ptr, 1, len, data->set.out);
+      else 
+        wrote = len;
     }
 
     if(wrote != len) {
