diff options
author | Kevin Lo <kevlo@FreeBSD.org> | 2001-07-08 15:08:24 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@FreeBSD.org> | 2001-07-08 15:08:24 +0000 |
commit | d18d5e4026bec491ee74b25232ef13b2a227e439 (patch) | |
tree | 205843a5ed9a20f6d8a286673a1627ab5ccebb20 /textproc/pardiff/files/patch-pardiff-pardiff.c | |
parent | 43d3403a7f8ecdc9b52d0b65fb09d0accddf2670 (diff) |
Notes
Diffstat (limited to 'textproc/pardiff/files/patch-pardiff-pardiff.c')
-rw-r--r-- | textproc/pardiff/files/patch-pardiff-pardiff.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/textproc/pardiff/files/patch-pardiff-pardiff.c b/textproc/pardiff/files/patch-pardiff-pardiff.c new file mode 100644 index 000000000000..0d7049379656 --- /dev/null +++ b/textproc/pardiff/files/patch-pardiff-pardiff.c @@ -0,0 +1,20 @@ +--- pardiff/pardiff.c.orig Sat Jul 7 07:54:35 2001 ++++ pardiff/pardiff.c Sun Jul 8 15:30:10 2001 +@@ -23,7 +23,7 @@ + + /* include files to determine the width of the output terminal */ + #include <fcntl.h> +-#include <termio.h> ++#include <sys/ttycom.h> + + + #else +@@ -314,7 +314,7 @@ + * Preprocess lines to get a consistent EOL + */ + if (convertCrlf) { +- line_len = strnlen(nextline, PARDIFF_LINE_BUF_SIZE); ++ line_len = strlen(nextline); + if (line_len > 2 && nextline[line_len - 2] == 0xd) { + nextline[line_len - 2] = '\n'; + nextline[line_len - 1] = '\0'; |