diff options
author | Ted Gould <ted@gould.cx> | 2010-08-20 09:29:38 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-08-20 09:29:38 -0500 |
commit | 878e149bd3f87034914ae050eacd0b52898f2cb8 (patch) | |
tree | b2ebec5dfa3fe3d9cd8c28e503de31b21b9be6bc | |
parent | 82edd0f8c1c742adea170d76ea382b5d1aa8db94 (diff) | |
parent | 3cd94732c2393b0ff73b9e89f3ae4d300aedbaad (diff) | |
download | libdbusmenu-878e149bd3f87034914ae050eacd0b52898f2cb8.tar.gz libdbusmenu-878e149bd3f87034914ae050eacd0b52898f2cb8.tar.bz2 libdbusmenu-878e149bd3f87034914ae050eacd0b52898f2cb8.zip |
Increasing the maximum size of the XML layout.
-rw-r--r-- | libdbusmenu-glib/client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index 73a7aac..4a93b8e 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -1225,7 +1225,8 @@ parse_layout (DbusmenuClient * client, const gchar * layout) xmlDocPtr xmldoc; - xmldoc = xmlReadMemory(layout, g_utf8_strlen(layout, 16*1024), "dbusmenu.xml", NULL, 0); + /* No one should need more characters than this! */ + xmldoc = xmlReadMemory(layout, g_utf8_strlen(layout, 1024*1024), "dbusmenu.xml", NULL, 0); xmlNodePtr root = xmlDocGetRootElement(xmldoc); |