diff options
-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 3870701..c3a88ca 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) { - strcpy(p->error, _("Invalid Byte Order Mark")); + ne_strnzcpy(p->error, sizeof p->error, _("Invalid Byte Order Mark")); return p->failure = 1; } } |