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