From 4ca8089ecc5085d7ccac04eb50c883fbf5e21b84 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Mon, 14 Oct 2002 08:26:26 +0000 Subject: [PATCH] Made attachment size variable SVN revision: 259 --- elog.c | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/elog.c b/elog.c index d7e9bdc5..721b92ad 100755 --- a/elog.c +++ b/elog.c @@ -6,6 +6,9 @@ Contents: Electronic logbook utility $Log$ + Revision 1.10 2002/10/14 08:26:26 midas + Made attachment size variable + Revision 1.9 2002/08/02 11:01:34 midas Added -r for replies @@ -112,7 +115,7 @@ char *p; /*------------------------------------------------------------------*/ -char request[600000], response[10000], content[600000]; +char request[100000], response[100000], *content; INT submit_elog(char *host, int port, char *subdir, char *experiment, char *passwd, @@ -219,6 +222,17 @@ char host_name[256], boundary[80], str[80], *p; if (verbose) printf("Successfully connected to host %s, port %d\n", host, port); + content_length = 100000; + for (i=0 ; i 500*1024) { printf("Attachment file \"%s\" is too long (500k max).\n", attachment[i]); return 1; } + */ n = read(fh, buffer[i], att_size[i]); if (n < att_size[i])