Merge branch 'kn/for-each-tag'
[gitweb.git] / progress.c
index a3efcfd34ccf60bcd41d7d2aef18fcb2aeca7837..353bd37416e65f6dba733ac9d14999f1e293b4b9 100644 (file)
@@ -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);