From 2bad783a6b11fbec8b9ac7d6392832aaa8111d73 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Fri, 29 Jan 2016 15:38:22 -0200 Subject: [PATCH] Melhorando alerta no caso de systype errado. --- options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options.c b/options.c index b30efa8..5da612a 100644 --- a/options.c +++ b/options.c @@ -153,7 +153,7 @@ LIB3270_EXPORT LIB3270_OPTION lib3270_parse_host_type(const char *name) int f; - for(f=0;f<(sizeof(host_type)/sizeof(host_type[0]));f++) + for(f=0;host_type[f].name;f++) { if(!strcasecmp(host_type[f].name,name)) return host_type[f].option; -- libgit2 0.21.2