Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2009-03-25 02:10:35 +0300
committerJunio C Hamano <gitster@pobox.com>2009-03-25 02:58:20 +0300
commit389d17677187f5e996022b7b8e0faf800608cb3a (patch)
treedf2c7ba0a3b73e7485d707ce3c89083d62d76fd9 /usage.c
parentb0de55541024a39ece47cf7a1eebdbde08ba978f (diff)
Increase the size of the die/warning buffer to avoid truncation
Long messages like those from lockfile.c when a lock can't be obtained truncate with only 256 bytes in the message buffer. Bump it to 1024 to give more space for these longer cases. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
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);
}