Commit 04a575ec authored by jan.koester's avatar jan.koester
Browse files

fixed

parent bdf42479
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1220,11 +1220,11 @@ void libhtmlpp::HtmlPage::loadFile(libhtmlpp::HtmlElement &html,const std::strin
        throw excp[HTMLException::Critical] << "Can't open file: " << path;
	}

    fs.seekg(std::ios::end, 0);
    fs.seekg(std::ios::end);

    data.reserve(fs.tellg());

    fs.seekg(std::ios::beg, 0);
    fs.seekg(std::ios::beg);

    data.assign((std::istreambuf_iterator<char>(fs)), std::istreambuf_iterator<char>());