Output some info about the size of our structures.
[rsync/rsync.git] / progress.c
index bd45ef1..fcd2a3d 100644 (file)
@@ -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);
 }