Re: [AD] Little bug in datedit.c

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Could you build the patch with 'diff -u' ? Thanks in advance.


I'm really sorry! I forgot the '-u'.
Solved :)

Oscar.

_________________________________________________________________
MSN Fotos: la forma más fácil de compartir e imprimir fotos. http://photos.msn.es/support/worldwide.aspx
--- datedit.c.old	Wed Nov 20 18:13:16 2002
+++ datedit.c	Wed Nov 20 01:44:58 2002
@@ -127,16 +127,16 @@
static int export_binary(AL_CONST DATAFILE *dat, AL_CONST char *filename)
{
   PACKFILE *f = pack_fopen(filename, F_WRITE);
-   int ret = 0;
+   int ret = -1;

   if (f) {
      if (pack_fwrite(dat->dat, dat->size, f) < dat->size)
-	 ret = -1;
+	 ret = 0;

      pack_fclose(f);
   }
   else
-      ret = -1;
+      ret = 0;

   return ret;
}



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/