Commit 6c99b5c0 authored by Russ Cox's avatar Russ Cox

cmd/5l, cmd/6l, cmd/8l: increase error buffer size

STRINGSZ (200) is fine for lines generated by things like
instruction dumps, but an error containing a couple file
names can easily exceed that, especially on Macs with
the ridiculous default $TMPDIR.

R=ken2
CC=golang-dev
https://golang.org/cl/11199043
parent 1d4ed0c8
......@@ -473,7 +473,7 @@ Oconv(Fmt *fp)
void
diag(char *fmt, ...)
{
char buf[STRINGSZ], *tn, *sep;
char buf[1024], *tn, *sep;
va_list arg;
tn = "";
......
......@@ -423,7 +423,7 @@ Iconv(Fmt *fp)
void
diag(char *fmt, ...)
{
char buf[STRINGSZ], *tn, *sep;
char buf[1024], *tn, *sep;
va_list arg;
tn = "";
......
......@@ -356,7 +356,7 @@ Iconv(Fmt *fp)
void
diag(char *fmt, ...)
{
char buf[STRINGSZ], *tn, *sep;
char buf[1024], *tn, *sep;
va_list arg;
tn = "";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment