Commit 2bad783a6b11fbec8b9ac7d6392832aaa8111d73
1 parent
19347fa7
Exists in
master
and in
3 other branches
Melhorando alerta no caso de systype errado.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
options.c
... | ... | @@ -153,7 +153,7 @@ LIB3270_EXPORT LIB3270_OPTION lib3270_parse_host_type(const char *name) |
153 | 153 | |
154 | 154 | int f; |
155 | 155 | |
156 | - for(f=0;f<(sizeof(host_type)/sizeof(host_type[0]));f++) | |
156 | + for(f=0;host_type[f].name;f++) | |
157 | 157 | { |
158 | 158 | if(!strcasecmp(host_type[f].name,name)) |
159 | 159 | return host_type[f].option; | ... | ... |