2012-10-10 [colin] 3.8.1cvs90
authorColin Leroy <colin@colino.net>
Wed, 10 Oct 2012 08:12:10 +0000 (08:12 +0000)
committerColin Leroy <colin@colino.net>
Wed, 10 Oct 2012 08:12:10 +0000 (08:12 +0000)
* src/inc.c
* src/mbox.c
* src/common/smtp.c
* src/common/smtp.h
Fix bug #2639, "The MSGBUFSIZE definition collides with a definition of OpenBSD"
Patch by "madroach"

ChangeLog
PATCHSETS
configure.ac
src/common/smtp.c
src/common/smtp.h
src/inc.c
src/mbox.c

index e92bfb753342ffcffe9b1f1e16248a5c9faf97ca..4fde506bee2f401d56df5ee83efb55d06729c817 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2012-10-10 [colin]     3.8.1cvs90
+
+       * src/inc.c
+       * src/mbox.c
+       * src/common/smtp.c
+       * src/common/smtp.h
+               Fix bug #2639, "The MSGBUFSIZE definition collides with a definition of OpenBSD"
+               Patch by "madroach"
+
 2012-10-10 [colin]     3.8.1cvs89
 
        * autogen.sh
 2012-10-10 [colin]     3.8.1cvs89
 
        * autogen.sh
index 408e23d1d3f7bccfc4ec99344eb6ad33b260caef..ec617ad30a51c315b2ed85915895ae90441257be 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.36.2.202 -r 1.36.2.203 src/common/utils.c;  ) > 3.8.1cvs87.patchset
 ( cvs diff -u -r 1.382.2.614 -r 1.382.2.615 src/compose.c;  ) > 3.8.1cvs88.patchset
 ( cvs diff -u -r 1.4.2.10 -r 1.4.2.11 autogen.sh;  ) > 3.8.1cvs89.patchset
 ( cvs diff -u -r 1.36.2.202 -r 1.36.2.203 src/common/utils.c;  ) > 3.8.1cvs87.patchset
 ( cvs diff -u -r 1.382.2.614 -r 1.382.2.615 src/compose.c;  ) > 3.8.1cvs88.patchset
 ( cvs diff -u -r 1.4.2.10 -r 1.4.2.11 autogen.sh;  ) > 3.8.1cvs89.patchset
+( cvs diff -u -r 1.149.2.111 -r 1.149.2.112 src/inc.c;  cvs diff -u -r 1.28.2.53 -r 1.28.2.54 src/mbox.c;  cvs diff -u -r 1.11.2.32 -r 1.11.2.33 src/common/smtp.c;  cvs diff -u -r 1.6.2.21 -r 1.6.2.22 src/common/smtp.h;  ) > 3.8.1cvs90.patchset
index 41b8224f0188bcb31f706fbc6308c5872f891af9..c8e22330d2cc8c259a1813ce3c6a17e9d77169a4 100644 (file)
@@ -12,7 +12,7 @@ MINOR_VERSION=8
 MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
 MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=89
+EXTRA_VERSION=90
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index a813174fa08ba53f26fb84a00722acf176541dca..a4de8de1f8c5ca6f811a9c4091a27cfa54c8de6a 100644 (file)
@@ -125,7 +125,7 @@ static void smtp_session_destroy(Session *session)
 
 gint smtp_from(SMTPSession *session)
 {
 
 gint smtp_from(SMTPSession *session)
 {
-       gchar buf[MSGBUFSIZE];
+       gchar buf[MESSAGEBUFSIZE];
        gchar *mail_size = NULL;
 
        cm_return_val_if_fail(session->from != NULL, SM_ERROR);
        gchar *mail_size = NULL;
 
        cm_return_val_if_fail(session->from != NULL, SM_ERROR);
@@ -189,7 +189,7 @@ static gint smtp_auth(SMTPSession *session)
 
 static gint smtp_auth_recv(SMTPSession *session, const gchar *msg)
 {
 
 static gint smtp_auth_recv(SMTPSession *session, const gchar *msg)
 {
-       gchar buf[MSGBUFSIZE];
+       gchar buf[MESSAGEBUFSIZE];
 
        switch (session->auth_type) {
        case SMTPAUTH_LOGIN:
 
        switch (session->auth_type) {
        case SMTPAUTH_LOGIN:
@@ -265,7 +265,7 @@ static gint smtp_auth_recv(SMTPSession *session, const gchar *msg)
 
 static gint smtp_auth_login_user_recv(SMTPSession *session, const gchar *msg)
 {
 
 static gint smtp_auth_login_user_recv(SMTPSession *session, const gchar *msg)
 {
-       gchar buf[MSGBUFSIZE];
+       gchar buf[MESSAGEBUFSIZE];
 
        session->state = SMTP_AUTH_LOGIN_PASS;
 
 
        session->state = SMTP_AUTH_LOGIN_PASS;
 
@@ -285,7 +285,7 @@ static gint smtp_auth_login_user_recv(SMTPSession *session, const gchar *msg)
 
 static gint smtp_ehlo(SMTPSession *session)
 {
 
 static gint smtp_ehlo(SMTPSession *session)
 {
-       gchar buf[MSGBUFSIZE];
+       gchar buf[MESSAGEBUFSIZE];
 
        session->state = SMTP_EHLO;
 
 
        session->state = SMTP_EHLO;
 
@@ -364,7 +364,7 @@ static gint smtp_auth_cram_md5(SMTPSession *session)
 
 static gint smtp_auth_plain(SMTPSession *session)
 {
 
 static gint smtp_auth_plain(SMTPSession *session)
 {
-       gchar buf[MSGBUFSIZE];
+       gchar buf[MESSAGEBUFSIZE];
 
        /* 
         * +1      +1      +1
 
        /* 
         * +1      +1      +1
@@ -429,7 +429,7 @@ static gint smtp_auth_login(SMTPSession *session)
 
 static gint smtp_helo(SMTPSession *session)
 {
 
 static gint smtp_helo(SMTPSession *session)
 {
-       gchar buf[MSGBUFSIZE];
+       gchar buf[MESSAGEBUFSIZE];
 
        session->state = SMTP_HELO;
 
 
        session->state = SMTP_HELO;
 
@@ -444,7 +444,7 @@ static gint smtp_helo(SMTPSession *session)
 
 static gint smtp_rcpt(SMTPSession *session)
 {
 
 static gint smtp_rcpt(SMTPSession *session)
 {
-       gchar buf[MSGBUFSIZE];
+       gchar buf[MESSAGEBUFSIZE];
        gchar *to;
 
        cm_return_val_if_fail(session->cur_to != NULL, SM_ERROR);
        gchar *to;
 
        cm_return_val_if_fail(session->cur_to != NULL, SM_ERROR);
index 9a34cadc4fee5666cd36c8620f5cacaf7c843729..2e78b1f0a77473e7f589f2a7df1b9c6bb1482bdf 100644 (file)
@@ -32,7 +32,7 @@ typedef struct _SMTPSession   SMTPSession;
 
 #define SMTP_SESSION(obj)      ((SMTPSession *)obj)
 
 
 #define SMTP_SESSION(obj)      ((SMTPSession *)obj)
 
-#define MSGBUFSIZE             8192
+#define MESSAGEBUFSIZE         8192
 
 typedef enum
 {
 
 typedef enum
 {
index d4fdf642ed389053eda3c89b6be8813358aaff30..d692ea064095c68e5ae12d1df28efe77336cf0e9 100644 (file)
--- a/src/inc.c
+++ b/src/inc.c
@@ -89,7 +89,7 @@ static GdkPixbuf *currentpix;
 static GdkPixbuf *errorpix;
 static GdkPixbuf *okpix;
 
 static GdkPixbuf *errorpix;
 static GdkPixbuf *okpix;
 
-#define MSGBUFSIZE     8192
+#define MESSAGEBUFSIZE 8192
 
 static void inc_update_stats(gint new_msgs);
 static void inc_finished               (MainWindow             *mainwin,
 
 static void inc_update_stats(gint new_msgs);
 static void inc_finished               (MainWindow             *mainwin,
@@ -968,7 +968,7 @@ static void inc_progress_dialog_set_label(IncProgressDialog *inc_dialog,
 static void inc_progress_dialog_set_progress(IncProgressDialog *inc_dialog,
                                             IncSession *inc_session)
 {
 static void inc_progress_dialog_set_progress(IncProgressDialog *inc_dialog,
                                             IncSession *inc_session)
 {
-       gchar buf[MSGBUFSIZE];
+       gchar buf[MESSAGEBUFSIZE];
        Pop3Session *pop3_session = POP3_SESSION(inc_session->session);
        gchar *total_size_str;
        gint cur_total;
        Pop3Session *pop3_session = POP3_SESSION(inc_session->session);
        gchar *total_size_str;
        gint cur_total;
index 89c1677a30b98dedca7de26192b0fcb6e1f08473..be000f7fcf5d0412f9116808041d9b2e5561699a 100644 (file)
@@ -53,7 +53,7 @@
 #include "alertpanel.h"
 #include "statusbar.h"
 
 #include "alertpanel.h"
 #include "statusbar.h"
 
-#define MSGBUFSIZE     8192
+#define MESSAGEBUFSIZE 8192
 
 #ifdef HAVE_FGETS_UNLOCKED
 #define SC_FGETS fgets_unlocked
 
 #ifdef HAVE_FGETS_UNLOCKED
 #define SC_FGETS fgets_unlocked
@@ -83,7 +83,7 @@ gint proc_mbox(FolderItem *dest, const gchar *mbox, gboolean apply_filter,
 /* return values: -1 error, >=0 number of msgs added */
 {
        FILE *mbox_fp;
 /* return values: -1 error, >=0 number of msgs added */
 {
        FILE *mbox_fp;
-       gchar buf[MSGBUFSIZE];
+       gchar buf[MESSAGEBUFSIZE];
        gchar *tmp_file;
        gint msgs = 0;
        gint lines;
        gchar *tmp_file;
        gint msgs = 0;
        gint lines;