summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-07-29 01:38:43 +0000
committerMike Frysinger <vapier@gentoo.org>2005-07-29 01:38:43 +0000
commit1c440059dcd5162f5994942eaecbb269d4ecf165 (patch)
tree35b2b23767ade693fbf03a0dfca4a2efbfc6b590 /net-ftp/ftp
parentRemoved old version (diff)
downloadgentoo-2-1c440059dcd5162f5994942eaecbb269d4ecf165.tar.gz
gentoo-2-1c440059dcd5162f5994942eaecbb269d4ecf165.tar.bz2
gentoo-2-1c440059dcd5162f5994942eaecbb269d4ecf165.zip
we love sanity checks
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'net-ftp/ftp')
-rw-r--r--net-ftp/ftp/files/netkit-ftp-0.17+ssl-0.2.diff6
-rw-r--r--net-ftp/ftp/files/netkit-ftp-0.17-ssl-0.2.patch4
2 files changed, 5 insertions, 5 deletions
diff --git a/net-ftp/ftp/files/netkit-ftp-0.17+ssl-0.2.diff b/net-ftp/ftp/files/netkit-ftp-0.17+ssl-0.2.diff
index 86c15833a90c..33fd798f1afc 100644
--- a/net-ftp/ftp/files/netkit-ftp-0.17+ssl-0.2.diff
+++ b/net-ftp/ftp/files/netkit-ftp-0.17+ssl-0.2.diff
@@ -161,7 +161,7 @@ diff -u -r -N netkit-ftp-0.17/ftp/ftp.c netkit-ftp-0.17+ssl-0.2/ftp/ftp.c
int r;
void (*oldintr)(int);
+#ifdef USE_SSL
-+ char outputbuf[2048]; /* allow for a 2k command string */
++ char outputbuf[8192];
+#endif /* USE_SSL */
abrtflag = 0;
@@ -172,7 +172,7 @@ diff -u -r -N netkit-ftp-0.17/ftp/ftp.c netkit-ftp-0.17+ssl-0.2/ftp/ftp.c
va_start(ap, fmt);
+#ifdef USE_SSL
+ /* assemble the output into a buffer */
-+ vsprintf(outputbuf,fmt,ap);
++ vsnprintf(outputbuf,sizeof(outputbuf),fmt,ap);
+ strcat(outputbuf,"\r\n");
+ if (ssl_active_flag) {
+ SSL_write(ssl_con,outputbuf,strlen(outputbuf));
@@ -866,7 +866,7 @@ diff -u -r -N netkit-ftp-0.17/ftp/main.c.~1~ netkit-ftp-0.17+ssl-0.2/ftp/main.c.
+ * from: @(#)main.c 5.18 (Berkeley) 3/1/91
+ */
+char main_rcsid[] =
-+ "$Id: netkit-ftp-0.17+ssl-0.2.diff,v 1.1 2002/11/23 07:31:44 raker Exp $";
++ "$Id: netkit-ftp-0.17+ssl-0.2.diff,v 1.2 2005/07/29 01:38:43 vapier Exp $";
+
+
+/*
diff --git a/net-ftp/ftp/files/netkit-ftp-0.17-ssl-0.2.patch b/net-ftp/ftp/files/netkit-ftp-0.17-ssl-0.2.patch
index 9ba6f5291a71..7f5558182188 100644
--- a/net-ftp/ftp/files/netkit-ftp-0.17-ssl-0.2.patch
+++ b/net-ftp/ftp/files/netkit-ftp-0.17-ssl-0.2.patch
@@ -182,7 +182,7 @@
int r;
void (*oldintr)(int);
+#ifdef USE_SSL
-+ char outputbuf[2048]; /* allow for a 2k command string */
++ char outputbuf[8192];
+#endif /* USE_SSL */
abrtflag = 0;
@@ -193,7 +193,7 @@
va_start(ap, fmt);
+#ifdef USE_SSL
+ /* assemble the output into a buffer */
-+ vsprintf(outputbuf,fmt,ap);
++ vsnprintf(outputbuf,sizeof(outputbuf),fmt,ap);
+ strcat(outputbuf,"\r\n");
+ if (ssl_active_flag) {
+ SSL_write(ssl_con,outputbuf,strlen(outputbuf));