From: Shawn O. Pearce Date: Tue, 24 Mar 2009 23:10:35 +0000 (-0700) Subject: Increase the size of the die/warning buffer to avoid truncation X-Git-Tag: v1.6.2.2~16 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=389d17677187f5e996022b7b8e0faf800608cb3a;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/usage.c b/usage.c index 24f5fc00c..820d09f92 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); }