lftp/lftp-3.5.14-progress_overflow.patch
Martin Nagy 57abc4eecd - upgrade to upstream version 3.6.1
- remove rpath and make some spec file changes for review (#225984)
- remove old patches
2008-01-23 09:44:21 +00:00

13 lines
451 B
Diff

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
@@ -514,6 +514,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()