Output some info about the size of our structures.
[rsync/rsync.git] / progress.c
index 5a08d16..fcd2a3d 100644 (file)
@@ -16,9 +16,9 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 #include "rsync.h"
@@ -104,8 +104,8 @@ static void rprint_progress(OFF_T ofs, OFF_T size, struct timeval *now,
                        stats.num_files - stats.current_file_index - 1,
                        stats.num_files);
        } else
-               strcpy(eol, "\r");
-       rprintf(FINFO, "%12s %3d%% %7.2f%s %4d:%02d:%02d%s",
+               strlcpy(eol, "\r", sizeof eol);
+       rprintf(FCLIENT, "%12s %3d%% %7.2f%s %4d:%02d:%02d%s",
                human_num(ofs), pct, rate, units,
                remain_h, remain_m, remain_s, eol);
 }