mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Increased TEXT_SIZE to 250000
SVN revision: 490
This commit is contained in:
parent
48b5250cea
commit
5196db7f38
28
src/elogd.c
28
src/elogd.c
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.79 2003/04/08 11:28:03 midas
|
||||||
|
Increased TEXT_SIZE to 250000
|
||||||
|
|
||||||
Revision 1.78 2003/04/08 11:10:06 midas
|
Revision 1.78 2003/04/08 11:10:06 midas
|
||||||
Made password recovery work in German
|
Made password recovery work in German
|
||||||
|
|
||||||
@ -877,7 +880,7 @@ char theme_name[80];
|
|||||||
#define MAX_N_LIST 100
|
#define MAX_N_LIST 100
|
||||||
#define MAX_N_ATTR 50
|
#define MAX_N_ATTR 50
|
||||||
#define CMD_SIZE 10000
|
#define CMD_SIZE 10000
|
||||||
#define TEXT_SIZE 100000
|
#define TEXT_SIZE 250000
|
||||||
#define MAX_PATH_LENGTH 256
|
#define MAX_PATH_LENGTH 256
|
||||||
|
|
||||||
char _param[MAX_PARAM][NAME_LENGTH];
|
char _param[MAX_PARAM][NAME_LENGTH];
|
||||||
@ -8135,7 +8138,7 @@ int current_year, current_month, current_day, printable, n_logbook, n_display
|
|||||||
reverse, n_attr_disp, n_msg, search_all, message_id, n_page, i_start, i_stop,
|
reverse, n_attr_disp, n_msg, search_all, message_id, n_page, i_start, i_stop,
|
||||||
in_reply_to_id;
|
in_reply_to_id;
|
||||||
char date[80], attrib[MAX_N_ATTR][NAME_LENGTH], disp_attr[MAX_N_ATTR+4][NAME_LENGTH],
|
char date[80], attrib[MAX_N_ATTR][NAME_LENGTH], disp_attr[MAX_N_ATTR+4][NAME_LENGTH],
|
||||||
list[10000], text[TEXT_SIZE], text1[TEXT_SIZE], text2[TEXT_SIZE],
|
list[10000], *text, *text1, *text2,
|
||||||
in_reply_to[80], reply_to[256], attachment[MAX_ATTACHMENTS][MAX_PATH_LENGTH], encoding[80];
|
in_reply_to[80], reply_to[256], attachment[MAX_ATTACHMENTS][MAX_PATH_LENGTH], encoding[80];
|
||||||
char str[NAME_LENGTH], ref[256], img[80], comment[NAME_LENGTH];
|
char str[NAME_LENGTH], ref[256], img[80], comment[NAME_LENGTH];
|
||||||
char mode[80];
|
char mode[80];
|
||||||
@ -8503,6 +8506,15 @@ LOGBOOK *lbs_cur;
|
|||||||
if (*getparam("subtext"))
|
if (*getparam("subtext"))
|
||||||
filtering = TRUE;
|
filtering = TRUE;
|
||||||
|
|
||||||
|
text = malloc(TEXT_SIZE);
|
||||||
|
text1 = malloc(TEXT_SIZE);
|
||||||
|
text2 = malloc(TEXT_SIZE);
|
||||||
|
if (text2 == NULL)
|
||||||
|
{
|
||||||
|
show_error("Out of memory");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* do filtering */
|
/* do filtering */
|
||||||
for (index=0 ; index<n_msg ; index++)
|
for (index=0 ; index<n_msg ; index++)
|
||||||
{
|
{
|
||||||
@ -8510,7 +8522,7 @@ LOGBOOK *lbs_cur;
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* retrieve message */
|
/* retrieve message */
|
||||||
size = sizeof(text);
|
size = TEXT_SIZE;
|
||||||
message_id = msg_list[index].lbs->el_index[msg_list[index].index].message_id;
|
message_id = msg_list[index].lbs->el_index[msg_list[index].index].message_id;
|
||||||
in_reply_to_id = msg_list[index].lbs->el_index[msg_list[index].index].in_reply_to;
|
in_reply_to_id = msg_list[index].lbs->el_index[msg_list[index].index].in_reply_to;
|
||||||
|
|
||||||
@ -9084,7 +9096,7 @@ LOGBOOK *lbs_cur;
|
|||||||
|
|
||||||
for (index=i_start ; index<=i_stop ; index++)
|
for (index=i_start ; index<=i_stop ; index++)
|
||||||
{
|
{
|
||||||
size = sizeof(text);
|
size = TEXT_SIZE;
|
||||||
message_id = msg_list[index].lbs->el_index[msg_list[index].index].message_id;
|
message_id = msg_list[index].lbs->el_index[msg_list[index].index].message_id;
|
||||||
|
|
||||||
status = el_retrieve(msg_list[index].lbs, message_id,
|
status = el_retrieve(msg_list[index].lbs, message_id,
|
||||||
@ -9245,6 +9257,9 @@ LOGBOOK *lbs_cur;
|
|||||||
rsprintf("</form></body></html>\r\n");
|
rsprintf("</form></body></html>\r\n");
|
||||||
|
|
||||||
free(msg_list);
|
free(msg_list);
|
||||||
|
free(text);
|
||||||
|
free(text1);
|
||||||
|
free(text2);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*------------------------------------------------------------------*/
|
/*------------------------------------------------------------------*/
|
||||||
@ -12494,7 +12509,10 @@ struct stat cfg_stat;
|
|||||||
goto finished;
|
goto finished;
|
||||||
|
|
||||||
if (verbose)
|
if (verbose)
|
||||||
printf("\n\n\n%s\n", net_buffer);
|
{
|
||||||
|
puts("\n");
|
||||||
|
puts(net_buffer);
|
||||||
|
}
|
||||||
|
|
||||||
/* initialize parametr array */
|
/* initialize parametr array */
|
||||||
initparam();
|
initparam();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user