summaryrefslogtreecommitdiff
path: root/src/cmd/5l
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2013-07-11 22:49:15 -0400
committerRuss Cox <rsc@golang.org>2013-07-11 22:49:15 -0400
commit7706ce42feadc8cea189117f369a38e0f5a03648 (patch)
tree67a2679f08a9a696c7a7b2a765ac6b933c403800 /src/cmd/5l
parente2230084abc20782bee7fe7a3b7035a0476dbc31 (diff)
downloadgo-7706ce42feadc8cea189117f369a38e0f5a03648.tar.gz
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://codereview.appspot.com/11199043
Diffstat (limited to 'src/cmd/5l')
-rw-r--r--src/cmd/5l/list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/5l/list.c b/src/cmd/5l/list.c
index a051774b4..7502a3b81 100644
--- a/src/cmd/5l/list.c
+++ b/src/cmd/5l/list.c
@@ -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 = "";