From 3923c9b85571076b0d8b104e53a22b3e2a401dce Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Mon, 28 Jan 2019 19:18:01 +0100 Subject: [PATCH] bzero -> memset Seems bzero is less portable --- src/imageformats/xcf.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/imageformats/xcf.cpp b/src/imageformats/xcf.cpp index 3afb599..ba65697 100644 --- a/src/imageformats/xcf.cpp +++ b/src/imageformats/xcf.cpp @@ -29,6 +29,8 @@ #include // #include +#include + #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()) {