mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-05-28 00:30:23 -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 <QDebug>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "gimp_p.h"
|
||||
|
||||
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);
|
||||
if (dataRead < data_length) {
|
||||
// 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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user