File tnt_bufferoverflows.diff of Package tnt

diff -Nur tnt-1.9.2.orig/src/boxlist.c tnt-1.9.2/src/boxlist.c
--- tnt-1.9.2.orig/src/boxlist.c	2000-01-06 02:16:50.000000000 +0100
+++ tnt-1.9.2/src/boxlist.c	2008-12-27 14:54:46.000000000 +0100
@@ -125,7 +125,7 @@
   char date[9];
   char time[6];
   char bid[13];
-  char mbx[7];
+  char mbx[MAXCOLS+1];
   int bytes;
   int lt;
   char title[MAXCOLS+1];
diff -Nur tnt-1.9.2.orig/src/display.c tnt-1.9.2/src/display.c
--- tnt-1.9.2.orig/src/display.c	2000-01-06 02:16:50.000000000 +0100
+++ tnt-1.9.2/src/display.c	2008-12-27 14:54:56.000000000 +0100
@@ -99,6 +99,7 @@
 extern int ptyecho_flag;
 
 static struct window helpwin;
+static struct window *textwin;
 struct window statlin;
 
 static struct real_layout help_layout[LAYOUTPARTS];
diff -Nur tnt-1.9.2.orig/src/iface.c tnt-1.9.2/src/iface.c
--- tnt-1.9.2.orig/src/iface.c	2000-01-06 02:16:50.000000000 +0100
+++ tnt-1.9.2/src/iface.c	2008-12-27 14:54:56.000000000 +0100
@@ -1296,7 +1296,7 @@
           (strcmp(if_list[iface].name,box_socket) == 0);
 #ifdef DPBOXT
         activate_program(channel);
-        cmd_display(mode,channel _(,"Activating program"),1);
+        cmd_display(mode,channel, _("Activating program"),1);
         mb_stat_display();
 #else
         if ((par2 == 1) && (channel != 0)) {
diff -Nur tnt-1.9.2.orig/src/init.c tnt-1.9.2/src/init.c
--- tnt-1.9.2.orig/src/init.c	2000-01-06 02:16:50.000000000 +0100
+++ tnt-1.9.2/src/init.c	2008-12-27 15:09:37.000000000 +0100
@@ -25,6 +25,7 @@
 extern char tnt_doc_dir[];
 extern char tnt_log_dir[];
 extern char tnt_proc_dir[];
+extern char tnt_editor[];
 #ifdef TNT_SOUND
 extern char tnt_sound_dir[];
 #endif
@@ -228,13 +229,14 @@
 extern int amount_wait;
 #endif
 extern int insertmode;
+extern char tnt_editor[];
+#endif /* DPBOXT */
 #ifdef USE_AX25K
 extern char ax25k_port[];
 extern int fullmoni_flag;
 extern char moni_socket[];
 #endif
-extern char tnt_editor[];
-#endif /* DPBOXT */
+
 char tnt_errlog[MAXCHAR];
 int ax25k_active;
 
openSUSE Build Service is sponsored by