2006-11-14 [colin] 2.6.0cvs44
authorColin Leroy <colin@colino.net>
Tue, 14 Nov 2006 07:26:45 +0000 (07:26 +0000)
committerColin Leroy <colin@colino.net>
Tue, 14 Nov 2006 07:26:45 +0000 (07:26 +0000)
* src/compose.c
* src/inc.c
* src/messageview.c
* src/news.c
* src/pop.c
* src/procmsg.c
* src/gtk/gtkaspell.c
Fix 64-bit-related warnings
* src/ssl_manager.c
Fix possible infinite loop
* src/plugins/pgpcore/sgpgme.c
Remove useless check

12 files changed:
ChangeLog
PATCHSETS
configure.ac
src/compose.c
src/gtk/gtkaspell.c
src/inc.c
src/messageview.c
src/news.c
src/plugins/pgpcore/sgpgme.c
src/pop.c
src/procmsg.c
src/ssl_manager.c

index 57556f6883b0d3ef207789da3dda41fea79fb538..16d678b052724053a37accf2944108846342859f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+2006-11-14 [colin]     2.6.0cvs44
+
+       * src/compose.c
+       * src/inc.c
+       * src/messageview.c
+       * src/news.c
+       * src/pop.c
+       * src/procmsg.c
+       * src/gtk/gtkaspell.c
+               Fix 64-bit-related warnings
+       * src/ssl_manager.c
+               Fix possible infinite loop
+       * src/plugins/pgpcore/sgpgme.c
+               Remove useless check
+
 2006-11-13 [colin]     2.6.0cvs43
 
        * src/gtk/Makefile.am
 2006-11-13 [colin]     2.6.0cvs43
 
        * src/gtk/Makefile.am
index 2358655d663d8f14d24a88e9340a8d93b8025b1b..dad3a0fd2b0f1b1bbd1ff7ad258435f120a35ecd 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.1.2.35 -r 1.1.2.36 src/plugins/pgpcore/sgpgme.c;  ) > 2.6.0cvs41.patchset
 ( cvs diff -u -r 1.1.2.22 -r 1.1.2.23 src/plugins/pgpinline/pgpinline.c;  cvs diff -u -r 1.1.2.41 -r 1.1.2.42 src/plugins/pgpmime/pgpmime.c;  ) > 2.6.0cvs42.patchset
 ( cvs diff -u -r 1.20.2.9 -r 1.20.2.10 src/gtk/Makefile.am;  ) > 2.6.0cvs43.patchset
 ( cvs diff -u -r 1.1.2.35 -r 1.1.2.36 src/plugins/pgpcore/sgpgme.c;  ) > 2.6.0cvs41.patchset
 ( cvs diff -u -r 1.1.2.22 -r 1.1.2.23 src/plugins/pgpinline/pgpinline.c;  cvs diff -u -r 1.1.2.41 -r 1.1.2.42 src/plugins/pgpmime/pgpmime.c;  ) > 2.6.0cvs42.patchset
 ( cvs diff -u -r 1.20.2.9 -r 1.20.2.10 src/gtk/Makefile.am;  ) > 2.6.0cvs43.patchset
+( cvs diff -u -r 1.382.2.329 -r 1.382.2.330 src/compose.c;  cvs diff -u -r 1.149.2.61 -r 1.149.2.62 src/inc.c;  cvs diff -u -r 1.94.2.109 -r 1.94.2.110 src/messageview.c;  cvs diff -u -r 1.101.2.32 -r 1.101.2.33 src/news.c;  cvs diff -u -r 1.56.2.45 -r 1.56.2.46 src/pop.c;  cvs diff -u -r 1.150.2.82 -r 1.150.2.83 src/procmsg.c;  cvs diff -u -r 1.3.2.22 -r 1.3.2.23 src/ssl_manager.c;  cvs diff -u -r 1.9.2.43 -r 1.9.2.44 src/gtk/gtkaspell.c;  cvs diff -u -r 1.1.2.36 -r 1.1.2.37 src/plugins/pgpcore/sgpgme.c;  ) > 2.6.0cvs44.patchset
index 4ac19e44db42ff159286e9fa88420e5f0ca13b84..fd09387b33944d613917bbfe5a099d24bb229ce6 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=6
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=43
+EXTRA_VERSION=44
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 4aaadc89c778ed8824413837103f9528a0e4f778..9e6aee62697791b033284a0b7516200af7bbda5a 100644 (file)
@@ -2224,7 +2224,7 @@ static void compose_entries_set(Compose *compose, const gchar *mailto)
        gchar *subject = NULL;
        gchar *body = NULL;
        gchar *temp = NULL;
        gchar *subject = NULL;
        gchar *body = NULL;
        gchar *temp = NULL;
-       guint  len = 0;
+       gsize  len = 0;
        gchar *attach = NULL;
        
        scan_mailto_url(mailto, &to, &cc, NULL, &subject, &body, &attach);
        gchar *attach = NULL;
        
        scan_mailto_url(mailto, &to, &cc, NULL, &subject, &body, &attach);
index 136540a095346e3f6f91330bf20953190f74f082..58bffba6153a652dde82ae96d0fcd82175f81289 100644 (file)
@@ -443,7 +443,7 @@ GtkAspell *gtkaspell_new(const gchar *dictionary_path,
        g_signal_connect(G_OBJECT(gtktext), "populate-popup",
                         G_CALLBACK(button_press_intercept_cb), gtkaspell);
        
        g_signal_connect(G_OBJECT(gtktext), "populate-popup",
                         G_CALLBACK(button_press_intercept_cb), gtkaspell);
        
-       debug_print("Aspell: created gtkaspell %0x\n", (guint) gtkaspell);
+       debug_print("Aspell: created gtkaspell %p\n", gtkaspell);
 
        return gtkaspell;
 }
 
        return gtkaspell;
 }
@@ -475,7 +475,7 @@ void gtkaspell_delete(GtkAspell *gtkaspell)
        g_free((gchar *)gtkaspell->dictionary_path);
        gtkaspell->dictionary_path = NULL;
 
        g_free((gchar *)gtkaspell->dictionary_path);
        gtkaspell->dictionary_path = NULL;
 
-       debug_print("Aspell: deleting gtkaspell %0x\n", (guint) gtkaspell);
+       debug_print("Aspell: deleting gtkaspell %p\n", gtkaspell);
 
        g_free(gtkaspell);
 
 
        g_free(gtkaspell);
 
@@ -633,8 +633,8 @@ static GtkAspeller *gtkaspeller_new(Dictionary *dictionary)
                                gtkaspellcheckers->checkers,
                                gtkaspeller);
 
                                gtkaspellcheckers->checkers,
                                gtkaspeller);
 
-               debug_print("Aspell: Created a new gtkaspeller %0x\n",
-                               (gint) gtkaspeller);
+               debug_print("Aspell: Created a new gtkaspeller %p\n",
+                               gtkaspeller);
        } else {
                dictionary_delete(dict);
 
        } else {
                dictionary_delete(dict);
 
@@ -692,8 +692,8 @@ static GtkAspeller *gtkaspeller_delete(GtkAspeller *gtkaspeller)
                g_slist_remove(gtkaspellcheckers->checkers, 
                                gtkaspeller);
 
                g_slist_remove(gtkaspellcheckers->checkers, 
                                gtkaspeller);
 
-       debug_print("Aspell: Deleting gtkaspeller %0x.\n", 
-                       (gint) gtkaspeller);
+       debug_print("Aspell: Deleting gtkaspeller %p.\n", 
+                       gtkaspeller);
 
        gtkaspeller_real_delete(gtkaspeller);
 
 
        gtkaspeller_real_delete(gtkaspeller);
 
@@ -714,8 +714,8 @@ static GtkAspeller *gtkaspeller_real_delete(GtkAspeller *gtkaspeller)
 
        dictionary_delete(gtkaspeller->dictionary);
 
 
        dictionary_delete(gtkaspeller->dictionary);
 
-       debug_print("Aspell: gtkaspeller %0x deleted.\n", 
-                   (gint) gtkaspeller);
+       debug_print("Aspell: gtkaspeller %p deleted.\n", 
+                   gtkaspeller);
 
        g_free(gtkaspeller);
 
 
        g_free(gtkaspeller);
 
@@ -849,8 +849,8 @@ gboolean gtkaspell_set_sug_mode(GtkAspell *gtkaspell, gint themode)
        g_return_val_if_fail(gtkaspell->gtkaspeller, FALSE);
        g_return_val_if_fail(gtkaspell->gtkaspeller->config, FALSE);
 
        g_return_val_if_fail(gtkaspell->gtkaspeller, FALSE);
        g_return_val_if_fail(gtkaspell->gtkaspeller->config, FALSE);
 
-       debug_print("Aspell: setting sug mode of gtkaspeller %0x to %d\n",
-                       (guint) gtkaspell->gtkaspeller, themode);
+       debug_print("Aspell: setting sug mode of gtkaspeller %p to %d\n",
+                       gtkaspell->gtkaspeller, themode);
 
        config = gtkaspell->gtkaspeller->config;
 
 
        config = gtkaspell->gtkaspeller->config;
 
index 4c7e0a15be495f76ccb81807f6939fa9d128e42a..c30b299519098fd9f8e17a4ba0532de30c9c332a 100644 (file)
--- a/src/inc.c
+++ b/src/inc.c
@@ -1325,8 +1325,8 @@ static gint get_spool(FolderItem *dest, const gchar *mbox, PrefsAccount *account
        if ((lockfd = lock_mbox(mbox, LOCK_FLOCK)) < 0)
                return -1;
 
        if ((lockfd = lock_mbox(mbox, LOCK_FLOCK)) < 0)
                return -1;
 
-       g_snprintf(tmp_mbox, sizeof(tmp_mbox), "%s%ctmpmbox.%08x",
-                  get_tmp_dir(), G_DIR_SEPARATOR, (gint)mbox);
+       g_snprintf(tmp_mbox, sizeof(tmp_mbox), "%s%ctmpmbox.%p",
+                  get_tmp_dir(), G_DIR_SEPARATOR, mbox);
 
        if (copy_mbox(mbox, tmp_mbox) < 0) {
                unlock_mbox(mbox, lockfd, LOCK_FLOCK);
 
        if (copy_mbox(mbox, tmp_mbox) < 0) {
                unlock_mbox(mbox, lockfd, LOCK_FLOCK);
index b7007706d7d1cdf6c4d33a4cf5af4a4d3f3595cf..461c271f3582a2beaf991c1b00582a8cf8c192fa 100644 (file)
@@ -616,8 +616,8 @@ static gint disposition_notification_send(MsgInfo *msginfo)
        }
 
        /* write to temporary file */
        }
 
        /* write to temporary file */
-       g_snprintf(tmp, sizeof(tmp), "%s%ctmpmsg%d",
-                  get_rc_dir(), G_DIR_SEPARATOR, (gint)msginfo);
+       g_snprintf(tmp, sizeof(tmp), "%s%ctmpmsg%p",
+                  get_rc_dir(), G_DIR_SEPARATOR, msginfo);
 
        if ((fp = g_fopen(tmp, "wb")) == NULL) {
                FILE_OP_ERROR(tmp, "fopen");
 
        if ((fp = g_fopen(tmp, "wb")) == NULL) {
                FILE_OP_ERROR(tmp, "fopen");
index aa54544e107243718643d35c8d0453e27157eb18..a88a79e163ab93422fb000595d4e9899c6d6b7e8 100644 (file)
@@ -789,8 +789,8 @@ gint news_cancel_article(Folder * folder, MsgInfo * msginfo)
        FILE * tmpfp;
        gchar buf[BUFFSIZE];
 
        FILE * tmpfp;
        gchar buf[BUFFSIZE];
 
-       tmp = g_strdup_printf("%s%ctmp%d", g_get_tmp_dir(),
-                             G_DIR_SEPARATOR, (gint)msginfo);
+       tmp = g_strdup_printf("%s%ctmp%p", g_get_tmp_dir(),
+                             G_DIR_SEPARATOR, msginfo);
        if (tmp == NULL)
                return -1;
 
        if (tmp == NULL)
                return -1;
 
index b92bba5c398936b7bc50d01bfa0f70c950bde0fd..878dbc01dc11051be46010695f9b787024181e17 100644 (file)
@@ -187,10 +187,6 @@ gchar *sgpgme_sigstat_info_short(gpgme_ctx_t ctx, gpgme_verify_result_t status)
        if (sig == NULL) {
                return g_strdup(_("The signature has not been checked."));
        }
        if (sig == NULL) {
                return g_strdup(_("The signature has not been checked."));
        }
-       if (sig->fpr == NULL) {
-               g_warning(_("PGP Core: Can't get key fingerprint."));
-               return g_strdup(_("PGP Core: Can't get key fingerprint."));
-       }
 
        err = gpgme_get_key(ctx, sig->fpr, &key, 0);
        if (gpg_err_code(err) == GPG_ERR_NO_AGENT) {
 
        err = gpgme_get_key(ctx, sig->fpr, &key, 0);
        if (gpg_err_code(err) == GPG_ERR_NO_AGENT) {
index effe156a38dc96df5fee0e688e2231036900c842..fe24b0609c688ed15d7ce781f3518a76f2793a02 100644 (file)
--- a/src/pop.c
+++ b/src/pop.c
@@ -234,7 +234,7 @@ static gint pop3_getrange_uidl_recv(Pop3Session *session, const gchar *data,
        gchar id[IDLEN + 1];
        gchar buf[POPBUFSIZE];
        gint buf_len;
        gchar id[IDLEN + 1];
        gchar buf[POPBUFSIZE];
        gint buf_len;
-       gint num;
+       guint32 num;
        time_t recv_time;
        gint partial_recv;
        const gchar *p = data;
        time_t recv_time;
        gint partial_recv;
        const gchar *p = data;
index 7486414dcd1bdeaf2e2ad8b554f1632c89707a98..469ac08e8d0afda0090b5f4f91ae4dd0e7f3047f 100644 (file)
@@ -1679,8 +1679,8 @@ send_mail:
                FILE *tmpfp;
 
                /* write to temporary file */
                FILE *tmpfp;
 
                /* write to temporary file */
-               tmp = g_strdup_printf("%s%ctmp%d", g_get_tmp_dir(),
-                           G_DIR_SEPARATOR, (gint)file);
+               tmp = g_strdup_printf("%s%ctmp%p", g_get_tmp_dir(),
+                           G_DIR_SEPARATOR, file);
                if ((tmpfp = g_fopen(tmp, "wb")) == NULL) {
                        FILE_OP_ERROR(tmp, "fopen");
                        newsval = -1;
                if ((tmpfp = g_fopen(tmp, "wb")) == NULL) {
                        FILE_OP_ERROR(tmp, "fopen");
                        newsval = -1;
index ad3d0fc65fa9b0880508e8ec086944da840e26a7..19d653442b5eb814cedc442f6eba1caa3ed031b3 100644 (file)
@@ -215,8 +215,8 @@ static char *get_server(char *str)
        int previous_dot_pos;
 
        first_pos = tmp;
        int previous_dot_pos;
 
        first_pos = tmp;
-       while ((tmp = strstr(tmp,".")) != NULL) {
-               *tmp++;
+       while (tmp && (tmp = strstr(tmp,".")) != NULL) {
+               tmp++;
                previous_pos = last_pos;
                last_pos = tmp;
        }
                previous_pos = last_pos;
                last_pos = tmp;
        }
@@ -234,8 +234,8 @@ static char *get_port(char *str)
        char *ret = NULL, *tmp = g_strdup(str);
        char *previous_pos = NULL, *last_pos = NULL;
 
        char *ret = NULL, *tmp = g_strdup(str);
        char *previous_pos = NULL, *last_pos = NULL;
 
-       while ((tmp = strstr(tmp,".")) != NULL) {
-               *tmp++;
+       while (tmp && (tmp = strstr(tmp,".")) != NULL) {
+               tmp++;
                previous_pos = last_pos;
                last_pos = tmp;
        }
                previous_pos = last_pos;
                last_pos = tmp;
        }