fix a buffer overflow
This commit is contained in:
parent
e0528fc2d4
commit
1f40ee2366
1 changed files with 1 additions and 1 deletions
|
@ -1268,7 +1268,7 @@ __xmlNodeCopy(const char *start, size_t *len, const char **path)
|
|||
if (ret)
|
||||
{
|
||||
memcpy(ret, p, rlen);
|
||||
*(ret+rlen+1) = '\0';
|
||||
*(ret+rlen) = '\0';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue