mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-06-03 17:08:08 -04:00
bzero -> memset
Seems bzero is less portable
This commit is contained in:
parent
51d710adda
commit
3923c9b855
@ -29,6 +29,8 @@
|
|||||||
#include <QVector>
|
#include <QVector>
|
||||||
// #include <QDebug>
|
// #include <QDebug>
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include "gimp_p.h"
|
#include "gimp_p.h"
|
||||||
|
|
||||||
const float INCHESPERMETER = (100.0f / 2.54f);
|
const float INCHESPERMETER = (100.0f / 2.54f);
|
||||||
@ -1123,7 +1125,7 @@ bool XCFImageFormat::loadTileRLE(QDataStream &xcf_io, uchar *tile, int image_siz
|
|||||||
const int dataRead = xcf_io.readRawData((char *)xcfdata, data_length);
|
const int dataRead = xcf_io.readRawData((char *)xcfdata, data_length);
|
||||||
if (dataRead < data_length) {
|
if (dataRead < data_length) {
|
||||||
// qDebug() << "XCF: read less data than expected" << data_length << dataRead;
|
// qDebug() << "XCF: read less data than expected" << data_length << dataRead;
|
||||||
bzero(&xcfdata[dataRead], data_length - dataRead);
|
memset(&xcfdata[dataRead], 0, data_length - dataRead);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!xcf_io.device()->isOpen()) {
|
if (!xcf_io.device()->isOpen()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user