Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_txt


Modified Files:
        ecore_txt.c 


Log Message:


dan sinclair's fix.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_txt/ecore_txt.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ecore_txt.c 9 Oct 2003 07:49:59 -0000       1.1
+++ ecore_txt.c 16 Feb 2004 02:48:13 -0000      1.2
@@ -30,7 +30,7 @@
    for (;;)
      {
        size_t count;
-       
+
        tob = outb;
        count = iconv(ic, &inp, &inb, &outp, &outb);
        outlen += tob - outb;
@@ -42,6 +42,18 @@
                  outalloc += 64;
                  outb += 64;
               }
+            else if (errno == EILSEQ)
+              {
+                 if (new_txt) free(new_txt);
+                 new_txt = NULL;
+                 break;
+              }
+            else if (errno == EINVAL)
+              {
+                 if (new_txt) free(new_txt);
+                 new_txt = NULL;
+                 break;
+              }
          }
        if (inb == 0)
          {




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to