diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-02-08 07:39:49 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-02-08 07:39:49 +0000 |
commit | af27b0937b6b44fb053d770da47a0ed4a01daaa8 (patch) | |
tree | 1a3ee9e78e559150d39572df8c3211cfc65edba4 /src | |
parent | 3579de9141b796047bcde9701d756fcc01d4a297 (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.cpp | 8 |
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)
|