aboutsummaryrefslogtreecommitdiff
path: root/vietnamese/vnpstext/files/patch-03
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>1996-12-09 02:07:06 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>1996-12-09 02:07:06 +0000
commitc972382ac4f689502206b606ecc7b1aa24389829 (patch)
tree5b45da461775953a1fe641217448d44f4c535da9 /vietnamese/vnpstext/files/patch-03
parent069531a1b9b04d6c3648199204f2045051357427 (diff)
downloadports-c972382ac4f689502206b606ecc7b1aa24389829.tar.gz
ports-c972382ac4f689502206b606ecc7b1aa24389829.zip
Notes
Diffstat (limited to 'vietnamese/vnpstext/files/patch-03')
-rw-r--r--vietnamese/vnpstext/files/patch-0322
1 files changed, 22 insertions, 0 deletions
diff --git a/vietnamese/vnpstext/files/patch-03 b/vietnamese/vnpstext/files/patch-03
new file mode 100644
index 000000000000..881d35319534
--- /dev/null
+++ b/vietnamese/vnpstext/files/patch-03
@@ -0,0 +1,22 @@
+--- vnpstext.c.orig Wed Sep 2 14:01:59 1992
++++ vnpstext.c Sun Dec 8 01:24:48 1996
+@@ -86,7 +86,8 @@
+ dofile(input)
+ FILE *input;
+ {
+- u_char line[1024];
++#define LINESIZE 1024
++ u_char line[LINESIZE];
+ register u_char *s;
+ register int pageno = 1;
+ register short col = 0;
+@@ -95,7 +96,8 @@
+
+ printf("StartDoc\n");
+
+- while (gets(line)) {
++ while (fgets(line, LINESIZE, stdin)) {
++ if (line[ strlen(line) - 1 ] == '\n') line[ strlen(line) - 1 ] = '\0';
+ if (!*line) printf("B\n");
+ else {
+