- Fixed coredumping when downloading (#414051)

This commit is contained in:
Martin Nagy 2007-12-13 07:45:39 +00:00
parent 13cbf9f229
commit bebc2e4873
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -up lftp-3.5.14/src/FileCopy.cc.test lftp-3.5.14/src/FileCopy.cc
--- lftp-3.5.14/src/FileCopy.cc.test 2007-12-11 09:48:03.000000000 +0100
+++ lftp-3.5.14/src/FileCopy.cc 2007-12-11 09:48:36.000000000 +0100
@@ -530,6 +530,6 @@ const char *FileCopy::GetPercentDoneStr(
return "";
- static char buf[6];
+ static char buf[8];
- sprintf(buf,"(%d%%) ",pct);
+ snprintf(buf,8,"(%d%%) ",pct);
return buf;
}
float FileCopy::GetRate()

View File

@ -1,7 +1,7 @@
Summary: A sophisticated file transfer program
Name: lftp
Version: 3.5.14
Release: 2.1%{?dist}
Release: 3%{?dist}
License: GPL
Group: Applications/Internet
Source0: ftp://ftp.yar.ru/lftp/lftp-%{version}.tar.gz
@ -9,6 +9,8 @@ URL: http://lftp.yar.ru/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: ncurses-devel, openssl-devel, pkgconfig, readline-devel, libtool, gettext
Patch1: lftp-3.5.14-progress_overflow.patch
%description
LFTP is a sophisticated ftp/http file transfer program. Like bash, it has job
control and uses the readline library for input. It has bookmarks, built-in
@ -17,6 +19,7 @@ reliability in mind.
%prep
%setup -q
%patch1 -p1 -b .progress_overflow
%build
if pkg-config openssl ; then
@ -86,6 +89,9 @@ exit 0
%{_libdir}/liblftp-tasks*
%changelog
* Tue Dec 13 2007 Martin Nagy <mnagy@redhat.com> - 3.5.14-3
- Fixed coredumping when downloading (#414051)
* Tue Dec 04 2007 Martin Nagy <mnagy@redhat.com> - 3.5.14-2.1
- rebuild