From b88e82603fb51f7a45f397919d1386f2b1dbb805 Mon Sep 17 00:00:00 2001 From: Michael Maclean Date: Tue, 20 Jul 2010 19:05:22 +0000 Subject: [PATCH] Apply patch from bug #17615 to fix segfaults on 64-bit systems --- gnupg.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gnupg.c b/gnupg.c index f0c0241..fa50d52 100644 --- a/gnupg.c +++ b/gnupg.c @@ -471,7 +471,7 @@ PHP_FUNCTION(gnupg_init){ * >0 = on * */ PHP_FUNCTION(gnupg_setarmor){ - int armor; + long armor; GNUPG_GETOBJ(); @@ -497,7 +497,7 @@ PHP_FUNCTION(gnupg_setarmor){ /* {{{ proto bool gnupg_seterrormode(int errormde) */ PHP_FUNCTION(gnupg_seterrormode){ - int errormode; + long errormode; GNUPG_GETOBJ(); @@ -532,7 +532,7 @@ PHP_FUNCTION(gnupg_seterrormode){ * sets the mode for signing operations */ PHP_FUNCTION(gnupg_setsignmode){ - int signmode; + long signmode; GNUPG_GETOBJ(); @@ -1395,7 +1395,7 @@ PHP_FUNCTION(gnupg_import){ PHP_FUNCTION(gnupg_deletekey){ char *key; int key_len; - int allow_secret = 0; + long allow_secret = 0; gpgme_key_t gpgme_key;