Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib/engines/common


Modified Files:
        evas_font_main.c 


Log Message:


fix some valgrind nasties - margins work...

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/evas/src/lib/engines/common/evas_font_main.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- evas_font_main.c    9 Feb 2005 16:10:56 -0000       1.17
+++ evas_font_main.c    20 Feb 2005 08:02:41 -0000      1.18
@@ -212,23 +212,30 @@
        r <<= 6;
        r |= (d4 & 0x3f);       
      }
-   index = istart - 1;
-   d = buf[index];
-   if (!(d & 0x80))
-     *iindex = index;
-   else
+   if (istart > 0)
      {
-       while (index > 0)
+       index = istart - 1;
+       d = buf[index];
+       if (!(d & 0x80))
+         *iindex = index;
+       else
          {
-            index--;
-            d = buf[index];
-            if ((d & 0xc0) != 0x80)
+            while (index > 0)
               {
-                 *iindex = index;
-                 return r;
+                 index--;
+                 d = buf[index];
+                 if ((d & 0xc0) != 0x80)
+                   {
+                      *iindex = index;
+                      return r;
+                   }
               }
          }
      }
+   else
+     {
+       *iindex = -1;
+     }
    return r;
 }
 




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to