summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-02-08 07:39:49 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-02-08 07:39:49 +0000
commitaf27b0937b6b44fb053d770da47a0ed4a01daaa8 (patch)
tree1a3ee9e78e559150d39572df8c3211cfc65edba4 /src
parent3579de9141b796047bcde9701d756fcc01d4a297 (diff)
Fixed bug in xml_buffer_writer::write
git-svn-id: http://pugixml.googlecode.com/svn/trunk@116 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src')
-rw-r--r--src/pugixml.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index a0f3a58..f4fef16 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -1410,11 +1410,9 @@ namespace
return;
}
}
- else
- {
- memcpy(buffer + bufsize, data, size);
- bufsize += size;
- }
+
+ memcpy(buffer + bufsize, data, size);
+ bufsize += size;
}
void write(const char* data)