diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-12-13 21:58:51 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-12-13 21:58:51 -0800 |
commit | 8311158c66e0d83df950ea837fb1cb332c51f798 (patch) | |
tree | d36f54375886bb0939416986d92aa8842ce29711 /builtin/blame.c | |
parent | 10dd3b2bf1444695416c0dac951297acf7d4e5e4 (diff) | |
parent | 66c11f02b031aca6f1756086fefdf4b8a5575c56 (diff) | |
download | git-8311158c66e0d83df950ea837fb1cb332c51f798.tar.gz |
Merge branch 'maint-1.7.7' into maint
* maint-1.7.7:
Git 1.7.7.5
Git 1.7.6.5
blame: don't overflow time buffer
fetch: create status table using strbuf
checkout,merge: loosen overwriting untracked file check based on info/exclude
cast variable in call to free() in builtin/diff.c and submodule.c
apply: get rid of useless x < 0 comparison on a size_t type
Conflicts:
Documentation/git.txt
GIT-VERSION-GEN
RelNotes
builtin/fetch.c
Diffstat (limited to 'builtin/blame.c')
-rw-r--r-- | builtin/blame.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/blame.c b/builtin/blame.c index 80febbe420..5a67c202f0 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); |