projects
/
m17n
/
m17n-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e1df99
)
(read_mtext_element): Fix previous change.
author
handa
<handa>
Fri, 7 Dec 2007 12:56:32 +0000
(12:56 +0000)
committer
handa
<handa>
Fri, 7 Dec 2007 12:56:32 +0000
(12:56 +0000)
src/plist.c
patch
|
blob
|
history
diff --git
a/src/plist.c
b/src/plist.c
index
45a32a6
..
2b4910a
100644
(file)
--- 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;