Commit 2bad783a6b11fbec8b9ac7d6392832aaa8111d73

Authored by Perry Werneck
1 parent 19347fa7

Melhorando alerta no caso de systype errado.

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
@@ -153,7 +153,7 @@ LIB3270_EXPORT LIB3270_OPTION lib3270_parse_host_type(const char *name) @@ -153,7 +153,7 @@ LIB3270_EXPORT LIB3270_OPTION lib3270_parse_host_type(const char *name)
153 153
154 int f; 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 if(!strcasecmp(host_type[f].name,name)) 158 if(!strcasecmp(host_type[f].name,name))
159 return host_type[f].option; 159 return host_type[f].option;