From 820e61492170c768b087e7f05f2f56e207d36eb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Mon, 26 Mar 2018 01:02:31 +0200 Subject: [PATCH] Fixed broken data size copy --- src/map/ozf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/ozf.cpp b/src/map/ozf.cpp index 352eb991..e583a84e 100644 --- a/src/map/ozf.cpp +++ b/src/map/ozf.cpp @@ -223,7 +223,7 @@ QPixmap OZF::tile(int zoom, int x, int y) quint32 bes = qToBigEndian(tileSize().width() * tileSize().height()); QByteArray ba; ba.resize(sizeof(bes) + size); - *(ba.data()) = bes; + memcpy(ba.data(), &bes, sizeof(bes)); if (!read(ba.data() + sizeof(bes), size, 16)) return QPixmap();