aboutsummaryrefslogtreecommitdiffstats
path: root/usage.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-03-24 19:45:57 -0700
committerJunio C Hamano <gitster@pobox.com>2009-03-24 19:45:57 -0700
commit89fbda24256157cc43848488429fd20cf3bb21ab (patch)
tree0e896125f1dfc70eed99f703b22494540c9a5000 /usage.c
parentAdd warning about known issues to documentation of cvsimport (diff)
parentIncrease the size of the die/warning buffer to avoid truncation (diff)
downloadgit-89fbda24256157cc43848488429fd20cf3bb21ab.tar.gz
git-89fbda24256157cc43848488429fd20cf3bb21ab.zip
Merge branch 'maint'
* maint: Increase the size of the die/warning buffer to avoid truncation close_sha1_file(): make it easier to diagnose errors avoid possible overflow in delta size filtering computation
Diffstat (limited to 'usage.c')
-rw-r--r--usage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usage.c b/usage.c
index 24f5fc00c2..820d09f92b 100644
--- a/usage.c
+++ b/usage.c
@@ -7,7 +7,7 @@
static void report(const char *prefix, const char *err, va_list params)
{
- char msg[256];
+ char msg[1024];
vsnprintf(msg, sizeof(msg), err, params);
fprintf(stderr, "%s%s\n", prefix, msg);
}