diff options
Diffstat (limited to 'src/ne_xml.c')
-rw-r--r-- | src/ne_xml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ne_xml.c b/src/ne_xml.c index c3a88ca..7dd823b 100644 --- a/src/ne_xml.c +++ b/src/ne_xml.c @@ -576,7 +576,7 @@ int ne_xml_parse(ne_xml_parser *p, const char *block, size_t len) if (p->bom_pos == 0) { p->bom_pos = 3; /* no BOM */ } else if (p->bom_pos > 0 && p->bom_pos < 3) { - ne_strnzcpy(p->error, sizeof p->error, _("Invalid Byte Order Mark")); + ne_strnzcpy(p->error, _("Invalid Byte Order Mark"), sizeof p->error); return p->failure = 1; } } |