]> git.decadent.org.uk Git - ap-utils.git/blobdiff - lib/common.c
Imported Upstream version 1.5.1~pre1
[ap-utils.git] / lib / common.c
index a3df8a3a7472fc1e71c11854769f5ea0cea862a5..45e7279f7e05468d26e852d8a89166b6e34d1a58 100644 (file)
@@ -166,6 +166,8 @@ void connect_options(unsigned long int ip, int type)
 
 get_all_again:
     mvwaddstr(main_sub, 1, 1, APIP);
+    wrefresh(main_sub);
+    
     if (ip) {
        ap_ip.s_addr = ip;
        mvwaddstr(main_sub, 1, 1 + strlen(APIP), inet_ntoa(ap_ip));
@@ -180,7 +182,7 @@ get_all_again:
     print_help("");
 
     print_help(_("Entered characters will not be displayed "
-                "for security reason."));
+                "for security reasons."));
     get_pass(message, 2, 1 + strlen(APPASS), 16);
     if (community)
        free(community);
@@ -289,6 +291,7 @@ get_all_again:
     if (i != -1) { /* we have NOT been asked with WANT_SYS_APLABEL */
        clear_main_new(5, 6);
        mvwaddstr(main_sub, 5, 1, APLABEL);
+        wrefresh(main_sub);
        get_value(message, 5, 1 + strlen(APLABEL), -sizeof(label), ANY_STRING,
            0, 0, NULL);
        strncpy(label, message, strlen(message) + 1);
@@ -486,7 +489,7 @@ void polling_interval()
     print_help(POLL_HELP);
 
     while (1) {
-       sprintf(message, _("%s%u"), POLL_I, poll_delay);
+       sprintf(message, "%s%u", POLL_I, poll_delay);
        mvwaddstr(main_sub, 0, 0, message);
        sprintf(message, _("(%0.1f seconds)"), (float) poll_delay / 10);
        mvwaddstr(main_sub, 1, strlen(POLL_I), message);