diff options
Diffstat (limited to 'net-ftp/ftp/files/netkit-ftp-0.17-ssl-0.2.patch')
-rw-r--r-- | net-ftp/ftp/files/netkit-ftp-0.17-ssl-0.2.patch | 4 |
1 files changed, 2 insertions, 2 deletions
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)); |