{"thread":{"id":"21716","subject":"[PATCH] Fix truncated usage messages","startedAt":"2009-11-22T21:19:53Z","lastAt":"2009-11-22T21:19:53Z","messageCount":1,"participants":["Björn Gustavsson"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"128125","messageId":"4B09AAF9.5000102@gmail.com","threadId":"21716","inReplyTo":null,"subject":"[PATCH] Fix truncated usage messages","fromName":"Björn Gustavsson","fromEmail":"bgustavsson@gmail.com","sentAt":"2009-11-22T21:19:53Z","receivedAt":"2009-11-22T21:19:53Z","isPatch":true,"sender":{"key":"bgustavsson@gmail.com","avatar":"https://avatars.githubusercontent.com/u/74840?v=4"},"body":"The usage messages for some commands (such as 'git diff-tree')\nare truncated because they don't fit in a fixed buffer of\n1024 bytes.\n\nIt would be tempting to eliminate the buffer and the problem once\nand for all by doing the output in three steps, but doing so could\n(according to commit d048a96e) increase the likelyhood of messing\nup the display.\n\nSo we just increase the size of the buffer.\n\nSigned-off-by: Björn Gustavsson <bgustavsson@gmail.com>\n---\n usage.c |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/usage.c b/usage.c\nindex e307e01..79856a2 100644\n--- a/usage.c\n+++ b/usage.c\n@@ -7,7 +7,7 @@\n \n static void report(const char *prefix, const char *err, va_list params)\n {\n-\tchar msg[1024];\n+\tchar msg[4096];\n \tvsnprintf(msg, sizeof(msg), err, params);\n \tfprintf(stderr, \"%s%s\\n\", prefix, msg);\n }\n-- \n1.6.5.3.298.g39add\n"}]}