From af27b0937b6b44fb053d770da47a0ed4a01daaa8 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Sun, 8 Feb 2009 07:39:49 +0000 Subject: Fixed bug in xml_buffer_writer::write git-svn-id: http://pugixml.googlecode.com/svn/trunk@116 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixml.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src') 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) -- cgit v1.2.3