]> git.decadent.org.uk Git - ap-utils.git/blobdiff - lib/set_community.c
Imported Upstream version 1.5~pre2
[ap-utils.git] / lib / set_community.c
index 84e7c7380474a405146d719f93debf1a18c5e747..1bd0117653a02a59a5b1db5353478054a998b936 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,22 +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),
+               get_pass(manufact, 3, 37,
                    sizeof(manufact));
            continue;
        case 'Q':