aboutsummaryrefslogtreecommitdiff
path: root/brlyt.c
diff options
context:
space:
mode:
authormegazig <megazig@megazig-desktop.(none)>2009-05-07 07:15:23 -0500
committermegazig <megazig@megazig-desktop.(none)>2009-05-07 07:15:23 -0500
commitb956ff757275c2a4973fc7c6b662e5a5f47f29db (patch)
treedef8d351740ab9667ebcd52c4e88ba4473b1572c /brlyt.c
parent84ade8be1b1f2e185ee224d29a584c0680603cce (diff)
added versioning
Diffstat (limited to 'brlyt.c')
-rw-r--r--brlyt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/brlyt.c b/brlyt.c
index a7cedc3..43259ba 100644
--- a/brlyt.c
+++ b/brlyt.c
@@ -873,6 +873,7 @@ void parse_brlyt(char *filename, char *filenameout)
mxml_node_t *xmlyt;
xml = mxmlNewXML("1.0");
xmlyt = mxmlNewElement(xml, "xmlyt");
+ mxmlElementSetAttrf(xmlyt, "version", "%d.%d.%d%s", BENZIN_VERSION_MAJOR, BENZIN_VERSION_MINOR, BENZIN_VERSION_BUILD, BENZIN_VERSION_OTHER);
PrintBRLYTEntries(entries, entrycount, brlyt_file, xmlyt);
mxmlSaveFile(xml, xmlFile, whitespace_cb);
fclose(xmlFile);
@@ -2135,8 +2136,8 @@ void WriteBRLYTEntry(mxml_node_t *tree, mxml_node_t *node, u8** tagblob, u32* bl
subnode = mxmlFindElement(node, node, "text", NULL, NULL, MXML_DESCEND);
if (subnode != NULL)
{
- unsigned char tempCoord[1024];
- get_value(subnode, tempCoord, 1024);
+ unsigned char tempCoord[2024];
+ get_value(subnode, tempCoord, 2024);
memcpy(tempy, tempCoord, short_swap_bytes(chunk2.len2)*2);
u32 w; for (w=0;w<short_swap_bytes(chunk2.len2);w++)
{