signing now returns only the SIGNATURE - not the original text - since building of...
authorKarl-Heinz Zimmer <khz@kde.org>
Sat, 24 Nov 2001 10:51:55 +0000 (10:51 +0000)
committerKarl-Heinz Zimmer <khz@kde.org>
Sat, 24 Nov 2001 10:51:55 +0000 (10:51 +0000)
trunk/gpgmeplug/gpgmeplug.c

index d6db832de4924a522fe11748799e6efbb290679a..b2e61bb0c324bb23c432cefdbbab6ff2499e3ad9 100644 (file)
@@ -751,7 +751,7 @@ bool signMessage( const char*  cleartext,
   gpgme_set_textmode (ctx, 1);
 
   gpgme_data_new_from_mem (&data, cleartext,
-                            strlen( cleartext ), 1 );
+                            1+strlen( cleartext ), 1 );
   gpgme_data_new ( &sig );
   gpgme_op_sign (ctx, data, sig, GPGME_SIG_MODE_DETACH );