Replace deprecated luaL_openlib() by luaL_register()
[apps/madmutt.git] / lib-ui / curs_lib.c
index 5e16f4d..8a78ac8 100644 (file)
@@ -343,6 +343,7 @@ void curses_initialize(void)
     if (start_color() == ERR || !has_colors() || COLORS < 8)
         mutt_exit(-1);
     madtty_init_colors();
+    madtty_init_vt100_graphics();
     ci_start_color();
     noecho();
     raw();
@@ -506,13 +507,13 @@ ssize_t mutt_pretty_size(char *s, ssize_t len, ssize_t n)
 
     if (n < 1023949)         /* 10K - 999K */
         /* 51 is magic which causes 10189/10240 to be rounded up to 10 */
-        return snprintf(s, len, "%ldK", (n + 51) / 1024);
+        return snprintf(s, len, "%ldK", (n + 51) / 1024L);
 
     if (n < 10433332)        /* 1.0M - 9.9M */
         return snprintf(s, len, "%3.1fM", n / 1048576.0);
 
     /* (10433332 + 52428) / 1048576 = 10 */
-    return snprintf (s, len, "%ldM", (n + 52428) / 1048576);
+    return snprintf (s, len, "%ldM", (n + 52428) / 1048576L);
 }
 
 /*