]> git.decadent.org.uk Git - ap-utils.git/blobdiff - lib/set_community.c
Merge commit 'upstream/1.5'
[ap-utils.git] / lib / set_community.c
index 84e7c7380474a405146d719f93debf1a18c5e747..22f6c20edd21d8c0266f249a04ba8df0461b29a9 100644 (file)
@@ -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;