Blame SOURCES/netkit-ftp-0.17-linelen.patch
|
|
09d58c |
--- netkit-ftp-0.17-dist/ftp/ftp_var.h 2012-10-29 10:02:44.455342130 +0100
|
|
|
09d58c |
+++ netkit-ftp-0.17-new/ftp/ftp_var.h 2012-10-29 10:02:31.292342775 +0100
|
|
|
09d58c |
@@ -54,6 +54,7 @@
|
|
|
09d58c |
#define Extern extern
|
|
|
09d58c |
#endif
|
|
|
09d58c |
|
|
|
09d58c |
+#define LINELEN PATH_MAX+200
|
|
|
09d58c |
|
|
|
09d58c |
/*
|
|
|
09d58c |
* Options and other state info.
|
|
|
09d58c |
@@ -109,9 +110,9 @@ Extern int ftp_port; /* htons'd port num
|
|
|
09d58c |
|
|
|
09d58c |
Extern sigjmp_buf toplevel; /* non-local goto stuff for cmd scanner */
|
|
|
09d58c |
|
|
|
09d58c |
-Extern char line[200]; /* input line buffer */
|
|
|
09d58c |
+Extern char line[LINELEN]; /* input line buffer */
|
|
|
09d58c |
Extern char *stringbase; /* current scan point in line buffer */
|
|
|
09d58c |
-Extern char argbuf[200]; /* argument storage buffer */
|
|
|
09d58c |
+Extern char argbuf[LINELEN]; /* argument storage buffer */
|
|
|
09d58c |
Extern char *argbase; /* current storage point in arg buffer */
|
|
|
09d58c |
Extern int cpend; /* flag: if != 0, then pending server reply */
|
|
|
09d58c |
Extern int mflag; /* flag: if != 0, then active multi command */
|
|
|
09d58c |
--- netkit-ftp-0.17/ftp/domacro.c 2012-10-29 10:02:44.394342130 +0100
|
|
|
09d58c |
+++ netkit-ftp-0.17-new/ftp/domacro.c 2012-10-29 10:02:31.292342775 +0100
|
|
|
09d58c |
@@ -53,7 +53,7 @@ domacro(int argc, char *argv[])
|
|
|
09d58c |
register int i, j;
|
|
|
09d58c |
register char *cp1, *cp2;
|
|
|
09d58c |
int count = 2, loopflg = 0;
|
|
|
09d58c |
- char line2[200];
|
|
|
09d58c |
+ char line2[LINELEN];
|
|
|
09d58c |
struct cmd *c;
|
|
|
09d58c |
|
|
|
09d58c |
if (argc < 2 && !another(&argc, &argv, "macro name")) {
|