eina - and follow-on calloc fixup - 0 terminate first calloced string
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 13 Aug 2014 02:52:59 +0000 (11:52 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 13 Aug 2014 02:52:59 +0000 (11:52 +0900)
this follows on from 6dc52db881cbe29dfe8b9a2a0a6745a8b3fa0673

src/lib/eina/eina_unicode.c

index 44bfac6..d7c323d 100644 (file)
@@ -335,6 +335,7 @@ eina_unicode_utf8_to_unicode(const char *utf, int *_len)
      {
         *uind = eina_unicode_utf8_next_get(utf, &ind);
      }
+   *uind = 0;
 
    return buf;
 }