Blob Blame History Raw
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()