diff options
-rw-r--r-- | progress.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/progress.c b/progress.c index a3efcfd34c..353bd37416 100644 --- a/progress.c +++ b/progress.c @@ -254,7 +254,7 @@ void stop_progress_msg(struct progress **p_progress, const char *msg) throughput_string(&tp->display, tp->curr_total, rate); } progress_update = 1; - sprintf(bufp, ", %s.\n", msg); + xsnprintf(bufp, len + 1, ", %s.\n", msg); display(progress, progress->last_value, bufp); if (buf != bufp) free(bufp); |