]> Pileus Git - ~andy/fetchmail/commitdiff
MSGBUFSIZE everywhere.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 26 Feb 1998 22:09:12 +0000 (22:09 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 26 Feb 1998 22:09:12 +0000 (22:09 -0000)
svn path=/trunk/; revision=1678

driver.c
etrn.c
fetchmail.c
fetchmail.h
imap.c
rcfile_l.l

index e6e44e6d5516a3cc287caff952efb12e606abbe6..07732a8770f69ad7e46a8d7e6874af054ee40e40 100644 (file)
--- a/driver.c
+++ b/driver.c
@@ -2234,7 +2234,7 @@ const char *fmt;  /* printf-style format */
 va_dcl
 #endif
 {
-    char buf [POPBUFSIZE+1];
+    char buf [MSGBUFSIZE+1];
     va_list ap;
 
     if (protocol->tagged)
@@ -2315,7 +2315,7 @@ va_dcl
 #endif
 {
     int ok;
-    char buf [POPBUFSIZE+1];
+    char buf [MSGBUFSIZE+1];
     va_list ap;
     int oldphase = phase;      /* we don't have to be re-entrant */
 
diff --git a/etrn.c b/etrn.c
index 26d30195919035f243ffaef6db8f8362818a63b6..09da776b335e24d15dfb2184fc936522e044b952 100644 (file)
--- a/etrn.c
+++ b/etrn.c
@@ -33,7 +33,7 @@ static int etrn_getrange(int sock, struct query *ctl, char *id, int *countp,
 /* send ETRN and interpret the response */
 {
     int ok, opts;
-    char buf [POPBUFSIZE+1];
+    char buf [MSGBUFSIZE+1];
     struct idlist *qnp;                /* pointer to Q names */
 
     if ((ok = SMTP_ehlo(sock, ctl->server.truename, &opts)))
index af5e474b920b818eddaf731d13e287600e45d258..ea5a56bb90a0e25a92172c3f8a3ed51b480e4099 100644 (file)
@@ -134,7 +134,7 @@ int main (int argc, char **argv)
        exit(PS_SYNTAX);
 
     /* this hint to stdio should help messages come out in the right order */
-    setvbuf(stdout, NULL, _IOLBF, POPBUFSIZE);
+    setvbuf(stdout, NULL, _IOLBF, MSGBUFSIZE);
 
     if (versioninfo)
     {
index 22ab295fea601b895b1b3347272ea7359e5f600c..021df0369b1a6313ae7dfc1cf7a9c33fe7b506ee 100644 (file)
  * from IMAP RFCs up to 2060, so these are mostly from POP3.
  */
 #define                HOSTLEN         635     /* max hostname length (RFC1123) */
-#define                POPBUFSIZE      512     /* max length of respone (RFC1939) */
+#define                POPBUFSIZE      512     /* max length of response (RFC1939) */
 #define                USERNAMELEN     40      /* max POP3 arg length (RFC1939) */
 #define                IDLEN           128     /* max length of UID (RFC1939) */
 
-/* clear a netbsd kernel parameter out of the way */ 
+/* clear a netBSD kernel parameter out of the way */ 
 #undef         MSGBUFSIZE
 
 #define                MSGBUFSIZE      2048    /* size of message read buffer */
diff --git a/imap.c b/imap.c
index ef4b9fc5d3e6fc020536df7982046dfc4460bd6d..af605789fea91c79df4e0e495645ab87fdc34cd0 100644 (file)
--- a/imap.c
+++ b/imap.c
@@ -45,12 +45,12 @@ extern char *strstr();      /* needed on sysV68 R3V7.1. */
 #define IMAP4rev1      1       /* IMAP4 rev 1, RFC2060 */
 
 static int count, seen, recent, unseen, deletions,expunged, imap_version;
-static char capabilities[POPBUFSIZE+1];
+static char capabilities[MSGBUFSIZE+1];
 
 int imap_ok(int sock, char *argbuf)
 /* parse command response */
 {
-    char buf [POPBUFSIZE+1];
+    char buf [MSGBUFSIZE+1];
 
     seen = 0;
     do {
@@ -746,7 +746,7 @@ static int imap_getrange(int sock,
 static int imap_getsizes(int sock, int count, int *sizes)
 /* capture the sizes of all messages */
 {
-    char buf [POPBUFSIZE+1];
+    char buf [MSGBUFSIZE+1];
 
     /*
      * Some servers (as in, PMDF5.1-9.1 under OpenVMS 6.1)
@@ -789,7 +789,7 @@ static int imap_is_old(int sock, struct query *ctl, int number)
 static int imap_fetch_headers(int sock, struct query *ctl,int number,int *lenp)
 /* request headers of nth message */
 {
-    char buf [POPBUFSIZE+1];
+    char buf [MSGBUFSIZE+1];
     int        num;
 
     /* expunges change the fetch numbers */
@@ -819,7 +819,7 @@ static int imap_fetch_headers(int sock, struct query *ctl,int number,int *lenp)
 static int imap_fetch_body(int sock, struct query *ctl, int number, int *lenp)
 /* request body of nth message */
 {
-    char buf [POPBUFSIZE+1], *cp;
+    char buf [MSGBUFSIZE+1], *cp;
     int        num;
 
     /* expunges change the fetch numbers */
@@ -885,7 +885,7 @@ static int imap_trail(int sock, struct query *ctl, int number)
 
     for (;;)
     {
-       char buf[POPBUFSIZE+1];
+       char buf[MSGBUFSIZE+1];
        int ok;
 
        if ((ok = gen_recv(sock, buf, sizeof(buf))))
index 465094ba92bcb6315867a021de9c4b84270091be..4d19be5906e0d0bc58ee4d37af7b2c30cad39432 100644 (file)
@@ -110,7 +110,7 @@ remote(folder)? {
 [0-9]+         { yylval.number = atoi(yytext); return NUMBER; }
 
 \"[^\"]*\"     {
-                       char buf[POPBUFSIZE];
+                       char buf[MSGBUFSIZE];
 
                        yytext[strlen(yytext)-1] = '\0';
                        escapes(yytext+1, buf);
@@ -118,7 +118,7 @@ remote(folder)? {
                        return STRING;
                }
 [^=;:, \t\r\n]+        {
-                       char buf[POPBUFSIZE];
+                       char buf[MSGBUFSIZE];
 
                        escapes(yytext, buf);
                        yylval.sval = (char *) xstrdup(buf);