Changed strcpy() calls into strlcpy() calls, just to be extra safe.
[rsync/rsync.git] / progress.c
index 3cf2ad7..fcd2a3d 100644 (file)
@@ -104,7 +104,7 @@ 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");
+               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);