diff --git a/plugins/Pass/jobs/decryptjob.cpp b/plugins/Pass/jobs/decryptjob.cpp index b89179b..37fce08 100644 --- a/plugins/Pass/jobs/decryptjob.cpp +++ b/plugins/Pass/jobs/decryptjob.cpp @@ -35,7 +35,7 @@ void DecryptJob::run() ret = rnp_output_memory_get_buf(output, &buf, &buf_len, false); } if (ret == RNP_SUCCESS) { - data = QString::fromUtf8((char*)buf); + data = QString::fromUtf8((char*)buf, buf_len); } rnp_input_destroy(input);