mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Added extra parameter to mxml_parse_buffer
SVN revision: 2430
This commit is contained in:
parent
1b396056a0
commit
13c6d64b87
@ -14622,7 +14622,7 @@ void xml_import(LOGBOOK * lbs, const char *xml, const char *xmlfile)
|
|||||||
|
|
||||||
n_attr = lbs->n_attr;
|
n_attr = lbs->n_attr;
|
||||||
|
|
||||||
root = mxml_parse_buffer(xml, error, sizeof(error));
|
root = mxml_parse_buffer(xml, error, sizeof(error), NULL);
|
||||||
if (root == NULL) {
|
if (root == NULL) {
|
||||||
strencode2(str, error, sizeof(str));
|
strencode2(str, error, sizeof(str));
|
||||||
show_error(str);
|
show_error(str);
|
||||||
@ -24789,7 +24789,7 @@ PMXML_NODE load_password_file(LOGBOOK * lbs, char *error, int error_size)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((xml_tree = mxml_parse_file(file_name, str, sizeof(str))) == NULL) {
|
if ((xml_tree = mxml_parse_file(file_name, str, sizeof(str), NULL)) == NULL) {
|
||||||
show_error(str);
|
show_error(str);
|
||||||
strlcpy(error, str, error_size);
|
strlcpy(error, str, error_size);
|
||||||
eprintf("Cannot load password file \"%s\": %s", file_name, error);
|
eprintf("Cannot load password file \"%s\": %s", file_name, error);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user