| 110 |
{ |
{ |
| 111 |
switch (toupper(ch)) |
switch (toupper(ch)) |
| 112 |
{ |
{ |
| 113 |
|
case KEY_NULL: |
| 114 |
|
case KEY_TIMEOUT: |
| 115 |
|
goto cleanup; |
| 116 |
case CR: |
case CR: |
| 117 |
igetch_reset(); |
igetch_reset(); |
| 118 |
break; |
break; |
| 176 |
{ |
{ |
| 177 |
switch (toupper(ch)) |
switch (toupper(ch)) |
| 178 |
{ |
{ |
| 179 |
|
case KEY_NULL: |
| 180 |
|
case KEY_TIMEOUT: |
| 181 |
|
goto cleanup; |
| 182 |
case CR: |
case CR: |
| 183 |
igetch_reset(); |
igetch_reset(); |
| 184 |
case 'S': |
case 'S': |
| 207 |
} |
} |
| 208 |
} |
} |
| 209 |
|
|
| 210 |
|
if (SYS_server_exit) // Do not save data on shutdown |
| 211 |
|
{ |
| 212 |
|
goto cleanup; |
| 213 |
|
} |
| 214 |
|
|
| 215 |
content = malloc(ARTICLE_CONTENT_MAX_LEN); |
content = malloc(ARTICLE_CONTENT_MAX_LEN); |
| 216 |
if (content == NULL) |
if (content == NULL) |
| 217 |
{ |
{ |
| 517 |
{ |
{ |
| 518 |
switch (toupper(ch)) |
switch (toupper(ch)) |
| 519 |
{ |
{ |
| 520 |
|
case KEY_NULL: |
| 521 |
|
case KEY_TIMEOUT: |
| 522 |
|
goto cleanup; |
| 523 |
case CR: |
case CR: |
| 524 |
igetch_reset(); |
igetch_reset(); |
| 525 |
case 'S': |
case 'S': |
| 540 |
} |
} |
| 541 |
} |
} |
| 542 |
|
|
| 543 |
|
if (SYS_server_exit) // Do not save data on shutdown |
| 544 |
|
{ |
| 545 |
|
goto cleanup; |
| 546 |
|
} |
| 547 |
|
|
| 548 |
// Allocate buffers in big size |
// Allocate buffers in big size |
| 549 |
content = malloc(ARTICLE_CONTENT_MAX_LEN); |
content = malloc(ARTICLE_CONTENT_MAX_LEN); |
| 550 |
if (content == NULL) |
if (content == NULL) |
| 905 |
{ |
{ |
| 906 |
switch (toupper(ch)) |
switch (toupper(ch)) |
| 907 |
{ |
{ |
| 908 |
|
case KEY_NULL: |
| 909 |
|
case KEY_TIMEOUT: |
| 910 |
|
goto cleanup; |
| 911 |
case CR: |
case CR: |
| 912 |
igetch_reset(); |
igetch_reset(); |
| 913 |
break; |
break; |
| 965 |
{ |
{ |
| 966 |
switch (toupper(ch)) |
switch (toupper(ch)) |
| 967 |
{ |
{ |
| 968 |
|
case KEY_NULL: |
| 969 |
|
case KEY_TIMEOUT: |
| 970 |
|
goto cleanup; |
| 971 |
case CR: |
case CR: |
| 972 |
igetch_reset(); |
igetch_reset(); |
| 973 |
case 'S': |
case 'S': |
| 996 |
} |
} |
| 997 |
} |
} |
| 998 |
|
|
| 999 |
|
if (SYS_server_exit) // Do not save data on shutdown |
| 1000 |
|
{ |
| 1001 |
|
goto cleanup; |
| 1002 |
|
} |
| 1003 |
|
|
| 1004 |
content = malloc(ARTICLE_CONTENT_MAX_LEN); |
content = malloc(ARTICLE_CONTENT_MAX_LEN); |
| 1005 |
if (content == NULL) |
if (content == NULL) |
| 1006 |
{ |
{ |