From e899668213ee8f7d3566bb5754b488d8633c30c7 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Tue, 10 Sep 2019 20:56:00 +0200 Subject: Add JET support --- plugins/gpgme-vala/src/gpgme_helper.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/gpgme-vala') diff --git a/plugins/gpgme-vala/src/gpgme_helper.vala b/plugins/gpgme-vala/src/gpgme_helper.vala index c0121842..4a6d94fa 100644 --- a/plugins/gpgme-vala/src/gpgme_helper.vala +++ b/plugins/gpgme-vala/src/gpgme_helper.vala @@ -163,11 +163,11 @@ private static uint8[] get_uint8_from_data(Data data) { data.seek(0); uint8[] buf = new uint8[256]; ssize_t? len = null; - Array res = new Array(false, true, 0); + ByteArray res = new ByteArray(); do { len = data.read(buf); if (len > 0) { - res.append_vals(buf, (int)len); + res.append(buf[0:len]); } } while (len > 0); return res.data; -- cgit v1.2.3-70-g09d2