X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ap-utils.git;a=blobdiff_plain;f=lib%2Fset_community.c;fp=lib%2Fset_community.c;h=22f6c20edd21d8c0266f249a04ba8df0461b29a9;hp=84e7c7380474a405146d719f93debf1a18c5e747;hb=1aac4ac30a9a0d6cd2182013d2b3fd48b65ed2fd;hpb=5c77e013a46530bb3650f61d768dfed0dd3b72cb diff --git a/lib/set_community.c b/lib/set_community.c index 84e7c73..22f6c20 100644 --- a/lib/set_community.c +++ b/lib/set_community.c @@ -71,7 +71,7 @@ void AuthorizedSettings() print_top(NULL, COMMUNITY_TOP_HEADER); mvwaddstr(main_sub, 0, 0, COMMUNITY_HEADER1); - mvwaddstr(main_sub, 0, 25, COMMUNITY_HEADER2); + mvwaddstr(main_sub, 0, 37, COMMUNITY_HEADER2); mvwaddstr(main_sub, 1, 0, COMMUNITY_USER); mvwaddstr(main_sub, 2, 0, COMMUNITY_ADMIN); @@ -88,23 +88,22 @@ void AuthorizedSettings() continue; case 'U': case 'u': -/* get_value(user, 1, 25, sizeof(user), ANY_STRING, 0, 0, NULL); */ - get_pass(user, 1, strlen(COMMUNITY_USER), sizeof(user)); +/* get_value(user, 1, 37, sizeof(user), ANY_STRING, 0, 0, NULL); */ + get_pass(user, 1, 37, sizeof(user)); continue; case 'A': case 'a': -/* get_value(admin, 2, 25, sizeof(admin), ANY_STRING, 0, 0, NULL); */ - get_pass(admin, 2, strlen(COMMUNITY_ADMIN), sizeof(admin)); +/* get_value(admin, 2, 37, sizeof(admin), ANY_STRING, 0, 0, NULL); */ + get_pass(admin, 2, 37, sizeof(admin)); continue; case 'M': case 'm': if (ap_type == ATMEL410 || ap_type == ATMEL12350) /* - get_value(manufact, 3, 25, sizeof(manufact), ANY_STRING, + get_value(manufact, 3, 37, sizeof(manufact), ANY_STRING, 0, 0, NULL); */ - get_pass(manufact, 3, strlen(COMMUNITY_MANUF), - sizeof(manufact)); + get_pass(manufact, 3, 37, sizeof(manufact)); continue; case 'Q': case 'q': @@ -141,6 +140,8 @@ void AuthorizedSettings() print_helperr(ERR_SET); goto exit; } + wbkgd(main_sub, A_NORMAL); + wrefresh(main_sub); break; } break;