source: npl/system/netkit-ftp/patches/28-netkit-ftp-0.17-linelen.patch @ 2154c77

Last change on this file since 2154c77 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[c5c522c]1--- netkit-ftp-0.17-dist/ftp/ftp_var.h  2012-10-29 10:02:44.455342130 +0100
2+++ netkit-ftp-0.17-new/ftp/ftp_var.h   2012-10-29 10:02:31.292342775 +0100
3@@ -54,6 +54,7 @@
4 #define Extern extern
5 #endif
6 
7+#define LINELEN PATH_MAX+200
8 
9 /*
10  * Options and other state info.
11@@ -109,9 +110,9 @@ Extern int  ftp_port;       /* htons'd port num
12 
13 Extern sigjmp_buf toplevel;    /* non-local goto stuff for cmd scanner */
14 
15-Extern char    line[200];      /* input line buffer */
16+Extern char    line[LINELEN];  /* input line buffer */
17 Extern char    *stringbase;    /* current scan point in line buffer */
18-Extern char    argbuf[200];    /* argument storage buffer */
19+Extern char    argbuf[LINELEN];        /* argument storage buffer */
20 Extern char    *argbase;       /* current storage point in arg buffer */
21 Extern int     cpend;          /* flag: if != 0, then pending server reply */
22 Extern int     mflag;          /* flag: if != 0, then active multi command */
23--- netkit-ftp-0.17/ftp/domacro.c       2012-10-29 10:02:44.394342130 +0100
24+++ netkit-ftp-0.17-new/ftp/domacro.c   2012-10-29 10:02:31.292342775 +0100
25@@ -53,7 +53,7 @@ domacro(int argc, char *argv[])
26        register int i, j;
27        register char *cp1, *cp2;
28        int count = 2, loopflg = 0;
29-       char line2[200];
30+       char line2[LINELEN];
31        struct cmd *c;
32 
33        if (argc < 2 && !another(&argc, &argv, "macro name")) {
Note: See TracBrowser for help on using the repository browser.