X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=builtin%2Fblame.c;h=5a67c202f06abeaa90a7547d78b536f7f2b9db24;hb=3bb8d69cddbcad4bd4ae3d1281c42c1aeb297355;hp=80febbe420db1c75bbcf7eda6a733e7e66549790;hpb=8327ee8677e3cdee4fc3563b9e5565405068e41e;p=git.git diff --git a/builtin/blame.c b/builtin/blame.c index 80febbe42..5a67c202f 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);