1
0
mirror of https://github.com/golang/go synced 2024-11-26 08:17:59 -07:00

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
This commit is contained in:
Russ Cox 2013-07-11 22:49:15 -04:00
parent 1d4ed0c86b
commit 6c99b5c0d3
3 changed files with 3 additions and 3 deletions

View File

@ -473,7 +473,7 @@ Oconv(Fmt *fp)
void void
diag(char *fmt, ...) diag(char *fmt, ...)
{ {
char buf[STRINGSZ], *tn, *sep; char buf[1024], *tn, *sep;
va_list arg; va_list arg;
tn = ""; tn = "";

View File

@ -423,7 +423,7 @@ Iconv(Fmt *fp)
void void
diag(char *fmt, ...) diag(char *fmt, ...)
{ {
char buf[STRINGSZ], *tn, *sep; char buf[1024], *tn, *sep;
va_list arg; va_list arg;
tn = ""; tn = "";

View File

@ -356,7 +356,7 @@ Iconv(Fmt *fp)
void void
diag(char *fmt, ...) diag(char *fmt, ...)
{ {
char buf[STRINGSZ], *tn, *sep; char buf[1024], *tn, *sep;
va_list arg; va_list arg;
tn = ""; tn = "";