summaryrefslogtreecommitdiff
path: root/net/tintin++/files/patch-ad
blob: 2d06a9015f70c170102fdfde76dd9e1eb6f7565c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
--- main.c.orig	Thu Mar 25 11:26:53 1999
+++ main.c	Tue Sep 26 17:27:58 2000
@@ -18,6 +18,7 @@
 #include <signal.h>
 #include "tintin.h"
 #include <fcntl.h>
+#include <termios.h>
 
 #ifndef BADSIG
 #define BADSIG (void (*)())-1
@@ -109,7 +110,7 @@
 tcflag_t c_lflag;
 cc_t c_cc[NCCS];
 #else
-unsigned char c_cc[NCC];
+unsigned char c_cc[NCCS];
 unsigned short c_lflag;
 #endif
 
@@ -580,7 +581,7 @@
     if(ses->logfile) {
       if (!OLD_LOG) {
       count=0;
-      for(n=0;n<=didget;n++) 
+      for(n=0;n<didget;n++)
          if (buffer[n]!='\r') { 
             temp[count]=buffer[n]; 
             count++;
@@ -750,7 +751,7 @@
       sprintf(strng,"%c8%s\n\r%c7%c[%d;%df", E, cptr, E, E, input_row, input_col);
     else
       sprintf(strng,"%s\n\r", cptr);
-    write(1,strng, strlen(strng)+1);
+    write(1,strng, strlen(strng));
     display_col=1;
     if (redraw && term_echoing && !is_split)
       write(1, k_input, strlen(k_input));
@@ -806,7 +807,7 @@
       cptr++;
       sprintf(strng,"%s\n\r", cptr);
     }
-    write(1,strng, strlen(strng)+1);
+    write(1,strng, strlen(strng));
     display_col=1;
   } 
   text_came=TRUE;  
@@ -876,7 +877,7 @@
   input_col=1;  
   sprintf(fn, "%c[2J%c[1;%dr%c[%d;1f", E, E, display_row, E, split_line);
   write(1,fn, strlen(fn));
-  write(1,"-------------------------------------------------------------------------------", 80);
+  write(1,"--------------------------------------------------------------------------------", 80);
   sprintf(fn, "%c[%d;1f%c7", E, split_line-1, E);
   write(1,fn,strlen(fn));
   sprintf(fn, "%c[%d;1f", E, input_row);