summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhu, Yongsheng <yongsheng.zhu@intel.com>2009-11-26 09:52:43 +0800
committerZhu, Yongsheng <yongsheng.zhu@intel.com>2009-11-26 09:52:43 +0800
commitc766898c9f314c33b023fda66ef30ab63c00bf2b (patch)
treeabdd24ed42b595a49e723b0b1eab97d47c0ab1b9
parentae39d7478a0c0fcf4ba55554f766c84b221cd213 (diff)
devinfo: increase memory size for encoding devinfo in WBXMLmb7981
Double the size of buffer used in encoding devinfo. When there are many sources, datastores consume much more buffer. It makes usage of buffer exceed 12k.
-rwxr-xr-xsrc/syncml_tk/src/sml/xlt/all/xltenc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/syncml_tk/src/sml/xlt/all/xltenc.c b/src/syncml_tk/src/sml/xlt/all/xltenc.c
index 2bb98a9..35d8450 100755
--- a/src/syncml_tk/src/sml/xlt/all/xltenc.c
+++ b/src/syncml_tk/src/sml/xlt/all/xltenc.c
@@ -1454,7 +1454,10 @@ Ret_t subdtdEncWBXML(XltTagID_t tagId, XltRO_t reqOptFlag, const VoidPtr_t pCont
Ret_t _err = SML_ERR_OK;
#endif
- Short_t SubBufSize = 12000; // for starters we use 12kB for each sub DTD to encode in WBXML
+ /* Double the size of SubBufSize for the memory is small for some complex
+ * content.
+ */
+ Short_t SubBufSize = 12000 * 2; // for starters we use 12kB for each sub DTD to encode in WBXML
BufferMgmtPtr_t pSubBufMgr = NULL;