Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'kn/for-each-tag'
[gitweb.git]
/
progress.c
diff --git
a/progress.c
b/progress.c
index a3efcfd34ccf60bcd41d7d2aef18fcb2aeca7837..353bd37416e65f6dba733ac9d14999f1e293b4b9 100644
(file)
--- 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);