X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Foutput%2Fsrzip.c;h=2d2ce720d1f338edb23d04e04f25d48ee5288295;hb=6ec6c43b4738dbc7091f4a49a4ec80ea6102cb52;hp=e52fec875fbc9031e384622c29e683fd78eb86ec;hpb=b9eb8e1a8cdb4ac6449cfa881da96bcf9bc687ad;p=libsigrok.git diff --git a/src/output/srzip.c b/src/output/srzip.c index e52fec87..2d2ce720 100644 --- a/src/output/srzip.c +++ b/src/output/srzip.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include @@ -186,7 +187,7 @@ static int zip_append(const struct sr_output *o, unsigned char *buf, if ((tmpfile = g_mkstemp(tmpname)) == -1) return SR_ERR; if (write(tmpfile, metafile, len) < 0) { - sr_dbg("Failed to create new metadata: %s", strerror(errno)); + sr_dbg("Failed to create new metadata: %s", g_strerror(errno)); g_free(metafile); unlink(tmpname); return SR_ERR;