diff options
author | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2018-09-24 10:46:35 +0000 |
---|---|---|
committer | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2018-09-24 10:46:35 +0000 |
commit | d80d18a2750ce3e403e5bc86d49a337d43b202b7 (patch) | |
tree | aa4b8f195c2661ca5a391aa0853ca00aac6ea880 | |
parent | 0f0223e1a66000ca7e99ce832864d73b8a06bf7f (diff) | |
download | neon-d80d18a2750ce3e403e5bc86d49a337d43b202b7.tar.gz |
* src/ne_xml.c (ne_xml_parse): Avoid clang warning from strcpy use.
git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2016 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
-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; } } |