summaryrefslogtreecommitdiffstats
path: root/src/pgp/pgp.vala
diff options
context:
space:
mode:
authorHolger Cremer <HolgerCremer@gmail.com>2018-12-18 21:05:56 +0100
committerHolger Cremer <HolgerCremer@gmail.com>2018-12-18 21:05:56 +0100
commit9dea5052820b2ee14b8c5b8e3b4ed18150908c79 (patch)
tree993e15142ae497bab844fff973b84df841930720 /src/pgp/pgp.vala
parent7bb9be84cc958a6d8f55996036af46cb7dfe0057 (diff)
parentad0e5a7ae756a7a63cff5b0a4a77d3b50e9c1fde (diff)
downloadserial-barcode-scanner-9dea5052820b2ee14b8c5b8e3b4ed18150908c79.tar.bz2
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/pgp/pgp.vala')
-rw-r--r--src/pgp/pgp.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pgp/pgp.vala b/src/pgp/pgp.vala
index 6d9bed0..9bff922 100644
--- a/src/pgp/pgp.vala
+++ b/src/pgp/pgp.vala
@@ -52,7 +52,7 @@ public class PGPKeyArchive {
archive.support_format_all();
/* load test archive for now */
- if(archive.open_memory(data, data.length) != Archive.Result.OK)
+ if(archive.open_memory(data) != Archive.Result.OK)
return result;
while(archive.next_header(out entry) == Archive.Result.OK) {
@@ -68,7 +68,7 @@ public class PGPKeyArchive {
if(size > 50000)
continue;
- if(archive.read_data((void*) content, (ssize_t) size) == size) {
+ if(archive.read_data(content) == size) {
if(!((string) content).has_prefix("-----BEGIN PGP PUBLIC KEY BLOCK-----"))
continue;