X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin%2Fblame.c;h=3e1f7e1e453f6ecc28fb910686c6580e77929556;hb=f026358ef20e0c252388a41fcc8eff125b00927c;hp=26a5d424b8ceb0fd403a492e46e3637fd35068ba;hpb=fb674d767180354d9ad3e69f1d41bee98df6bfe9;p=git.git diff --git a/builtin/blame.c b/builtin/blame.c index 26a5d424b..3e1f7e1e4 100644 --- a/builtin/blame.c +++ b/builtin/blame.c @@ -1598,7 +1598,7 @@ static const char *format_time(unsigned long time, const char *tz_str, int tz; if (show_raw_time) { - sprintf(time_buf, "%lu %s", time, tz_str); + snprintf(time_buf, sizeof(time_buf), "%lu %s", time, tz_str); } else { tz = atoi(tz_str);