This is C++

private/hcvcastro/forking
Tor Lillqvist 2015-04-10 01:25:48 +03:00
parent abec49b4bc
commit 06d98ec0b7
2 changed files with 2 additions and 3 deletions

View File

@ -349,7 +349,7 @@ void LOOLSession::sendTile(const char *buffer, int length, StringTokenizer& toke
std::vector<char> output;
output.reserve(4 * width * height);
output.resize(response.size());
memcpy(output.data(), response.data(), response.size());
std::memcpy(output.data(), response.data(), response.size());
std::unique_ptr<std::fstream> cachedTile = _tileCache->lookupTile(width, height, tilePosX, tilePosY, tileWidth, tileHeight);
if (cachedTile && cachedTile->is_open())

View File

@ -8,9 +8,8 @@
*/
#include <cstdlib>
#include <cstring>
#include <string>
#include <string.h>
#include <png.h>