b46df69
--- netkit-ftp-0.17/ftp/cmds.c.longnames	2006-07-25 11:13:55.000000000 +0200
b46df69
+++ netkit-ftp-0.17/ftp/cmds.c	2006-07-24 17:52:10.000000000 +0200
b46df69
@@ -1057,10 +1057,9 @@
b46df69
 status(void)
b46df69
 {
b46df69
 	int i;
b46df69
-
b46df69
-	if (connected)
b46df69
+	if (connected) 
b46df69
 		printf("Connected to %s.\n", hostname);
b46df69
-	else
b46df69
+	else 
b46df69
 		printf("Not connected.\n");
b46df69
 	if (!proxy) {
b46df69
 		pswitch(1);
b46df69
@@ -1081,7 +1080,7 @@
b46df69
 		onoff(runique));
b46df69
 	printf("Case: %s; CR stripping: %s\n",onoff(mcase),onoff(crflag));
b46df69
 	if (ntflag) {
b46df69
-		printf("Ntrans: (in) %s (out) %s\n", ntin,ntout);
b46df69
+		printf("Ntrans: (in) %s (out) %s\n",ntin,ntout);
b46df69
 	}
b46df69
 	else {
b46df69
 		printf("Ntrans: off\n");
b46df69
@@ -1948,14 +1947,14 @@
b46df69
 	}
b46df69
 	ntflag++;
b46df69
 	code = ntflag;
b46df69
-	(void) strncpy(ntin, argv[1], 16);
b46df69
-	ntin[16] = '\0';
b46df69
+	(void) strncpy(ntin, argv[1], NTRANS_MAX);
b46df69
+	ntin[NTRANS_MAX] = '\0';
b46df69
 	if (argc == 2) {
b46df69
 		ntout[0] = '\0';
b46df69
 		return;
b46df69
 	}
b46df69
-	(void) strncpy(ntout, argv[2], 16);
b46df69
-	ntout[16] = '\0';
b46df69
+	(void) strncpy(ntout, argv[2], NTRANS_MAX);
b46df69
+ 	ntout[NTRANS_MAX] = '\0';
b46df69
 }
b46df69
 
b46df69
 static char *
b46df69
@@ -1965,10 +1964,10 @@
b46df69
 	char *cp1, *cp2 = new;
b46df69
 	register int i, ostop, found;
b46df69
 
b46df69
-	for (ostop = 0; *(ntout + ostop) && ostop < 16; ostop++);
b46df69
+	for (ostop = 0; *(ntout + ostop) && ostop < NTRANS_MAX; ostop++);
b46df69
 	for (cp1 = name; *cp1; cp1++) {
b46df69
 		found = 0;
b46df69
-		for (i = 0; *(ntin + i) && i < 16; i++) {
b46df69
+		for (i = 0; *(ntin + i) && i < NTRANS_MAX; i++) {
b46df69
 			if (*cp1 == *(ntin + i)) {
b46df69
 				found++;
b46df69
 				if (i < ostop) {
b46df69
--- netkit-ftp-0.17/ftp/ftp.c.longnames	2006-07-25 11:13:56.000000000 +0200
b46df69
+++ netkit-ftp-0.17/ftp/ftp.c	2006-07-24 17:46:14.000000000 +0200
b46df69
@@ -1656,8 +1656,8 @@
b46df69
 		int runqe;
b46df69
 		int mcse;
b46df69
 		int ntflg;
b46df69
-		char nti[17];
b46df69
-		char nto[17];
b46df69
+		char nti[NTRANS_MAX+1];
b46df69
+		char nto[NTRANS_MAX+1];
b46df69
 		int mapflg;
b46df69
 		char mi[MAXPATHLEN];
b46df69
 		char mo[MAXPATHLEN];
b46df69
@@ -1712,11 +1712,11 @@
b46df69
 	mcase = op->mcse;
b46df69
 	ip->ntflg = ntflag;
b46df69
 	ntflag = op->ntflg;
b46df69
-	(void) strncpy(ip->nti, ntin, 16);
b46df69
-	(ip->nti)[16] = '\0';		/* shouldn't use strlen */
b46df69
+	(void) strncpy(ip->nti, ntin, NTRANS_MAX);
b46df69
+	(ip->nti)[NTRANS_MAX] = '\0';		/* shouldn't use strlen */
b46df69
 	(void) strcpy(ntin, op->nti);
b46df69
-	(void) strncpy(ip->nto, ntout, 16);
b46df69
-	(ip->nto)[16] = '\0';
b46df69
+	(void) strncpy(ip->nto, ntout, NTRANS_MAX);
b46df69
+	(ip->nto)[NTRANS_MAX] = '\0';
b46df69
 	(void) strcpy(ntout, op->nto);
b46df69
 	ip->mapflg = mapflag;
b46df69
 	mapflag = op->mapflg;
b46df69
--- netkit-ftp-0.17/ftp/ftp_var.h.longnames	2006-07-25 11:13:56.000000000 +0200
b46df69
+++ netkit-ftp-0.17/ftp/ftp_var.h	2006-07-24 15:49:37.000000000 +0200
b46df69
@@ -42,6 +42,7 @@
b46df69
 
b46df69
 #include <setjmp.h>
b46df69
 #include <sys/param.h>
b46df69
+#define NTRANS_MAX	64
b46df69
 
b46df69
 /*
b46df69
  * Tick counter step size.
b46df69
@@ -82,8 +83,8 @@
b46df69
 Extern char     pasv[64];       /* passive port for proxy data connection */
b46df69
 Extern int      passivemode;    /* passive mode enabled */
b46df69
 Extern char	*altarg;	/* argv[1] with no shell-like preprocessing  */
b46df69
-Extern char	ntin[17];	/* input translation table */
b46df69
-Extern char	ntout[17];	/* output translation table */
b46df69
+Extern char	ntin[NTRANS_MAX+1];	/* input translation table */
b46df69
+Extern char	ntout[NTRANS_MAX+1];	/* output translation table */
b46df69
 Extern char	mapin[MAXPATHLEN];	/* input map template */
b46df69
 Extern char	mapout[MAXPATHLEN];	/* output map template */
b46df69
 Extern char	typename[32];		/* name of file transfer type */