1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
|
--- amenu.c-orig Tue Feb 6 03:15:01 2001
+++ amenu.c Thu Mar 21 10:19:02 2002
@@ -13,7 +13,8 @@
static jmp_buf jmpbuf;
#ifndef VMS
#ifndef AIX
-#define BADSIG (void (*)())-1
+/* #define BADSIG (void (*)())-1 */
+#define BADSIG SIG_ERR
#endif
#endif
@@ -176,7 +177,7 @@
fprintf(stdout," H. HELP\n");
fprintf(stdout," X. EXIT (leave program)\n\n\n");
- getstr("Your choice",lin1);
+ getstr("Your choice",lin1,MAXLINE);
switch(toupper(*lin1)) {
case '1': seq_input(FALSE);
@@ -260,7 +261,7 @@
fprintf(stdout," H. HELP\n");
fprintf(stdout," or press [RETURN] to go back to main menu\n\n\n");
- getstr("Your choice",lin1);
+ getstr("Your choice",lin1,MAXLINE);
if(*lin1 == EOS) return;
switch(toupper(*lin1))
@@ -353,7 +354,7 @@
fprintf(stdout," H. HELP\n");
fprintf(stdout," or press [RETURN] to go back to main menu\n\n\n");
- getstr("Your choice",lin1);
+ getstr("Your choice",lin1,MAXLINE);
if(*lin1 == EOS) return;
switch(toupper(*lin1))
@@ -449,7 +450,7 @@
fprintf(stdout,"\n\n");
fprintf(stdout," H. HELP\n\n\n");
- getstr("Enter number (or [RETURN] to exit)",lin2);
+ getstr("Enter number (or [RETURN] to exit)",lin2,MAXLINE);
if( *lin2 == EOS) {
return;
}
@@ -525,7 +526,7 @@
fprintf(stdout,"--\n");
- getstr("\n\nEnter number (or [RETURN] to exit)",lin2);
+ getstr("\n\nEnter number (or [RETURN] to exit)",lin2,MAXLINE);
if(*lin2 == EOS) return(output_struct_penalties);
switch(toupper(*lin2))
@@ -594,7 +595,7 @@
fprintf(stdout," H. HELP\n");
fprintf(stdout," or press [RETURN] to go back to main menu\n\n\n");
- getstr("Your choice",lin1);
+ getstr("Your choice",lin1,MAXLINE);
if(*lin1 == EOS) return;
switch(toupper(*lin1))
@@ -669,7 +670,7 @@
fprintf(stdout,"\n");
fprintf(stdout," H. HELP\n\n\n");
- getstr("Enter number (or [RETURN] to exit)",lin2);
+ getstr("Enter number (or [RETURN] to exit)",lin2,MAXLINE);
if(*lin2 == EOS) return;
switch(toupper(*lin2)) {
@@ -752,7 +753,7 @@
fprintf(stdout,"\n");
fprintf(stdout," H. HELP\n\n\n");
- getstr("Enter number (or [RETURN] to exit)",lin2);
+ getstr("Enter number (or [RETURN] to exit)",lin2,MAXLINE);
if(*lin2 == EOS) return;
switch(toupper(*lin2)) {
@@ -886,7 +887,7 @@
fprintf(stdout," H. HELP\n\n\n");
- getstr("Enter number (or [RETURN] to exit)",lin2);
+ getstr("Enter number (or [RETURN] to exit)",lin2,MAXLINE);
if( *lin2 == EOS) {
if(dnaflag) {
dna_pw_go_penalty = pw_go_penalty;
@@ -1008,7 +1009,7 @@
fprintf(stdout," 8. Protein Gap Parameters\n\n");
fprintf(stdout," H. HELP\n\n\n");
- getstr("Enter number (or [RETURN] to exit)",lin2);
+ getstr("Enter number (or [RETURN] to exit)",lin2,MAXLINE);
if(*lin2 == EOS) {
if(dnaflag) {
@@ -1101,7 +1102,7 @@
fprintf(stdout," 5. Toggle End Gap Separation :%s\n\n",(!use_endgaps) ? "OFF" : "ON");
fprintf(stdout," H. HELP\n\n\n");
- getstr("Enter number (or [RETURN] to exit)",lin2);
+ getstr("Enter number (or [RETURN] to exit)",lin2,MAXLINE);
if(*lin2 == EOS) return;
@@ -1115,7 +1116,7 @@
case '3':
fprintf(stdout,"Hydrophilic Residues Currently: %s\n",hyd_residues);
- getstr("Enter residues (or [RETURN] to quit)",lin1);
+ getstr("Enter residues (or [RETURN] to quit)",lin1,MAXLINE);
if (*lin1 != EOS) {
for (i=0;i<strlen(hyd_residues) && i<26;i++) {
c = lin1[i];
@@ -1167,7 +1168,7 @@
fprintf(stdout,"--\n");
- getstr("\n\nEnter number (or [RETURN] to exit)",lin2);
+ getstr("\n\nEnter number (or [RETURN] to exit)",lin2,MAXLINE);
if(*lin2 == EOS) return(matn);
i=toupper(*lin2)-'0';
@@ -1202,7 +1203,7 @@
fprintf(stdout,"\n%s\n",title);
strcpy(line,prompt);
strcat(line, "(y/n) ? [y]");
- getstr(line,lin2);
+ getstr(line,lin2,80);
if ((*lin2 != 'n') && (*lin2 != 'N'))
return('y');
else
|