Fix truncated usage messages
The usage messages for some commands (such as 'git diff-tree') are truncated because they don't fit in a fixed buffer of 1024 bytes. It would be tempting to eliminate the buffer and the problem once and for all by doing the output in three steps, but doing so could (according to commit d048a96e) increase the likelyhood of messing up the display. So we just increase the size of the buffer. Signed-off-by: Björn Gustavsson <bgustavsson@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Björn Gustavsson committed
Nov 22, 2009 at 22:19 UTC
625a860cb73b259683a4285705ac17e92298d5d5
1 file changed
+1
-1
usage.c
+1
-1
@@ -7,7 +7,7 @@
7
8
static void report(const char *prefix, const char *err, va_list params)
9
{
10
- char msg[1024];
10
+ char msg[4096];
11
vsnprintf(msg, sizeof(msg), err, params);
12
fprintf(stderr, "%s%s\n", prefix, msg);
13
}