* citadel_ipc.c: changed various buffer lengths from 256 to SIZ in order to
authorArt Cancro <ajc@citadel.org>
Fri, 19 Jul 2002 02:28:11 +0000 (02:28 +0000)
committerArt Cancro <ajc@citadel.org>
Fri, 19 Jul 2002 02:28:11 +0000 (02:28 +0000)
  accomodate long lines which often spew out (usually from spam unfortunately)

citadel/ChangeLog
citadel/citadel_ipc.c

index 984062927b090278e9a4b3c19bb1af66e0456f5b..58acdcbd4fcc7ce19b3a47571938556777b8bc77 100644 (file)
@@ -1,4 +1,8 @@
  $Log$
+ Revision 591.68  2002/07/19 02:28:11  ajc
+ * citadel_ipc.c: changed various buffer lengths from 256 to SIZ in order to
+   accomodate long lines which often spew out (usually from spam unfortunately)
+
  Revision 591.67  2002/07/18 21:29:37  nbryant
  added a note about GNU make to the configure script output
 
@@ -3814,4 +3818,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import
-
index 6538ac06ffdc11ed679d86a5dea76e284a31e4ef..dd9e916d9f93eebf40b3d2470a6ece961acc7240 100644 (file)
@@ -32,7 +32,7 @@ char express_msgs = 0;
 
 static volatile int download_in_progress = 0;  /* download file open */
 static volatile int upload_in_progress = 0;    /* upload file open */
-/* static volatile int serv_sock;      /* Socket on which we talk to server */
+/* static volatile int serv_sock; */   /* Socket on which we talk to server */
 
 
 /*
@@ -204,7 +204,7 @@ int CtdlIPCKnownRooms(int which, int floor, struct march **listing, char *cret)
        register int ret;
        struct march *march = NULL;
        static char *proto[] = {"LRMS", "LKRN", "LKRO", "LKRA", "LZRM" };
-       char aaa[256];
+       char aaa[SIZ];
        char *bbb = NULL;
        size_t bbbsize;
 
@@ -999,7 +999,7 @@ int CtdlIPCFileDownload(const char *filename, void **buf, char *cret)
        register int ret;
        size_t bytes;
        time_t last_mod;
-       char mimetype[256];
+       char mimetype[SIZ];
        char *aaa;
 
        if (!cret) return -2;
@@ -1037,8 +1037,8 @@ int CtdlIPCAttachmentDownload(long msgnum, const char *part, void **buf,
        register int ret;
        size_t bytes;
        time_t last_mod;
-       char filename[256];
-       char mimetype[256];
+       char filename[SIZ];
+       char mimetype[SIZ];
        char *aaa;
 
        if (!cret) return -2;
@@ -1076,7 +1076,7 @@ int CtdlIPCImageDownload(const char *filename, void **buf, char *cret)
        register int ret;
        size_t bytes;
        time_t last_mod;
-       char mimetype[256];
+       char mimetype[SIZ];
        char *aaa;
 
        if (!cret) return -1;
@@ -1723,7 +1723,7 @@ char *CtdlIPCReadListing(char *dest)
 {
        long length = 0;
        char *ret;
-       char aaa[256];
+       char aaa[SIZ];
 
        ret = dest;
        if (ret) length = strlen(ret);
@@ -1767,7 +1767,7 @@ int CtdlIPCSendListing(const char *listing)
 size_t CtdlIPCPartialRead(void **buf, size_t offset, size_t bytes, char *cret)
 {
        register size_t len = 0;
-       char aaa[256];
+       char aaa[SIZ];
 
        if (!buf) return -1;
        if (!cret) return -1;
@@ -1854,7 +1854,7 @@ int CtdlIPCWriteUpload(void *buf, size_t bytes, char *cret)
 {
        register int ret = -1;
        register size_t offset;
-       char aaa[256];
+       char aaa[SIZ];
 
        if (!cret) return -1;
        if (!buf) return -1;