Skip to content

Commit 625a860

Browse files
bjornggitster
authored andcommitted
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 d048a96) increase the likelyhood of messing up the display. So we just increase the size of the buffer. Signed-off-by: Björn Gustavsson <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 39add7a commit 625a860

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

usage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
static void report(const char *prefix, const char *err, va_list params)
99
{
10-
char msg[1024];
10+
char msg[4096];
1111
vsnprintf(msg, sizeof(msg), err, params);
1212
fprintf(stderr, "%s%s\n", prefix, msg);
1313
}

0 commit comments

Comments
 (0)