From: handa Date: Fri, 7 Dec 2007 12:56:32 +0000 (+0000) Subject: (read_mtext_element): Fix previous change. X-Git-Tag: REL-1-5-0~14 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=0cfb871aaa7a61730807418a6cd25e209f2ebf68;p=m17n%2Fm17n-lib.git (read_mtext_element): Fix previous change. --- 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;