From b73b43ea3165a52bb9c3d4263954800f4055f426 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 7 Dec 2009 22:01:59 -0800 Subject: [PATCH] 6l, 8l: make string buffer big enough for 8 chars (and then some) Fixes #221. R=ken2 https://golang.org/cl/165086 --- src/cmd/6l/list.c | 2 +- src/cmd/8l/list.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/6l/list.c b/src/cmd/6l/list.c index 34b66c0c80..ecb189b83a 100644 --- a/src/cmd/6l/list.c +++ b/src/cmd/6l/list.c @@ -361,7 +361,7 @@ int Sconv(Fmt *fp) { int i, c; - char str[30], *p, *a; + char str[100], *p, *a; a = va_arg(fp->args, char*); p = str; diff --git a/src/cmd/8l/list.c b/src/cmd/8l/list.c index ec6a1fa0fb..8736ac88bf 100644 --- a/src/cmd/8l/list.c +++ b/src/cmd/8l/list.c @@ -275,7 +275,7 @@ int Sconv(Fmt *fp) { int i, c; - char str[30], *p, *a; + char str[100], *p, *a; a = va_arg(fp->args, char*); p = str;