(read_mtext_element): Fix previous change.
authorntakahas <ntakahas>
Mon, 5 Sep 2005 11:38:21 +0000 (11:38 +0000)
committerntakahas <ntakahas>
Mon, 5 Sep 2005 11:38:21 +0000 (11:38 +0000)
src/plist.c

index df04d1e..7439751 100644 (file)
@@ -253,7 +253,7 @@ read_mtext_element (MPlist *plist, MStream *st, int skip)
              chars = buffer.chars;
              for (j = i - 1; j >= 0; j--)
                chars[j] = bytes[j];
-             nchars = i;
+             nchars = READ_MTEXT_BUF_SIZE;
              if (bytes != buffer.bytes)
                free (bytes);
            }