From 0cfb871aaa7a61730807418a6cd25e209f2ebf68 Mon Sep 17 00:00:00 2001 From: handa Date: Fri, 7 Dec 2007 12:56:32 +0000 Subject: [PATCH] (read_mtext_element): Fix previous change. --- src/plist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plist.c b/src/plist.c index 45a32a6..2b4910a 100644 --- a/src/plist.c +++ b/src/plist.c @@ -292,7 +292,8 @@ read_mtext_element (MPlist *plist, MStream *st, int skip) { MText *mt = mtext__from_data (buf, i, MTEXT_FORMAT_UTF_8, (buf == buffer)); - mt->allocated = nbytes; + if (buf != buffer) + mt->allocated = nbytes; MPLIST_SET_ADVANCE (plist, Mtext, mt); } return plist; -- 1.7.10.4