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>
Shawn O. Pearce committed
Mar 24, 2009 at 16:10 UTC
389d17677187f5e996022b7b8e0faf800608cb3a
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[256];
10
+ char msg[1024];
11
vsnprintf(msg, sizeof(msg), err, params);
12
fprintf(stderr, "%s%s\n", prefix, msg);
13
}