Fixed bug where XML data was written to file instead of buffer

This commit is contained in:
2005-10-25 12:31:05 +00:00
parent d4de46a3d8
commit d51de8ab4b
+2 -3
View File
@@ -352,9 +352,8 @@ int mxml_end_element(MXML_WRITER *writer)
free(writer->stack[writer->level]);
if (writer->level == 0)
free(writer->stack);
if (write(writer->fh, "/>\n", 3) != 3)
return FALSE;
return TRUE;
strcpy(line, "/>\n");
return mxml_write_line(writer, line) == (int)strlen(line);
}
line[0] = 0;