summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pugixml.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index 66493ab..a0b3241 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -5825,7 +5825,7 @@ PUGI__NS_BEGIN
if (result != ptr && ptr)
{
// copy old data
- assert(new_size > old_size);
+ assert(new_size >= old_size);
memcpy(result, ptr, old_size);
// free the previous page if it had no other objects