From 424f9ca6abc5eff29d4bb2cca3321b14485120b8 Mon Sep 17 00:00:00 2001 From: Ken Thompson Date: Wed, 27 Jan 2010 15:37:46 -0800 Subject: [PATCH] change print print buffer size to go with the full path names R=rsc CC=golang-dev https://golang.org/cl/195079 --- src/cmd/5g/list.c | 6 +++--- src/cmd/6c/list.c | 6 +++--- src/cmd/6g/list.c | 4 ++-- src/cmd/6l/list.c | 6 +++--- src/cmd/8c/list.c | 6 +++--- src/cmd/8g/list.c | 4 ++-- src/cmd/8l/list.c | 6 +++--- 7 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/cmd/5g/list.c b/src/cmd/5g/list.c index dfe3bcb79c..19027829cd 100644 --- a/src/cmd/5g/list.c +++ b/src/cmd/5g/list.c @@ -213,7 +213,7 @@ char* strcond[16] = int Cconv(Fmt *fp) { - char s[20]; + char s[STRINGSZ]; int c; c = va_arg(fp->args, int); @@ -233,7 +233,7 @@ int Yconv(Fmt *fp) { int i, c; - char str[100], *p, *a; + char str[STRINGSZ], *p, *a; a = va_arg(fp->args, char*); p = str; @@ -278,7 +278,7 @@ int Rconv(Fmt *fp) { int r; - char str[30]; + char str[STRINGSZ]; r = va_arg(fp->args, int); snprint(str, sizeof(str), "R%d", r); diff --git a/src/cmd/6c/list.c b/src/cmd/6c/list.c index 64afe79fe4..ba517ca0a0 100644 --- a/src/cmd/6c/list.c +++ b/src/cmd/6c/list.c @@ -111,7 +111,7 @@ Aconv(Fmt *fp) int Dconv(Fmt *fp) { - char str[40], s[20]; + char str[STRINGSZ], s[STRINGSZ]; Adr *a; int i; @@ -337,7 +337,7 @@ char* regstr[] = int Rconv(Fmt *fp) { - char str[20]; + char str[STRINGSZ]; int r; r = va_arg(fp->args, int); @@ -353,7 +353,7 @@ int Sconv(Fmt *fp) { int i, c; - char str[100], *p, *a; + char str[STRINGSZ], *p, *a; a = va_arg(fp->args, char*); p = str; diff --git a/src/cmd/6g/list.c b/src/cmd/6g/list.c index eadd7481bc..9194b1dab2 100644 --- a/src/cmd/6g/list.c +++ b/src/cmd/6g/list.c @@ -73,7 +73,7 @@ Pconv(Fmt *fp) int Dconv(Fmt *fp) { - char str[100], s[100]; + char str[STRINGSZ], s[STRINGSZ]; Addr *a; int i; uint32 d1, d2; @@ -313,7 +313,7 @@ int Yconv(Fmt *fp) { int i, c; - char str[100], *p, *a; + char str[STRINGSZ], *p, *a; a = va_arg(fp->args, char*); p = str; diff --git a/src/cmd/6l/list.c b/src/cmd/6l/list.c index ecb189b83a..195e11d1de 100644 --- a/src/cmd/6l/list.c +++ b/src/cmd/6l/list.c @@ -96,7 +96,7 @@ Aconv(Fmt *fp) int Dconv(Fmt *fp) { - char str[40], s[20]; + char str[STRINGSZ], s[STRINGSZ]; Adr *a; int i; @@ -345,7 +345,7 @@ char* regstr[] = int Rconv(Fmt *fp) { - char str[20]; + char str[STRINGSZ]; int r; r = va_arg(fp->args, int); @@ -361,7 +361,7 @@ int Sconv(Fmt *fp) { int i, c; - char str[100], *p, *a; + char str[STRINGSZ], *p, *a; a = va_arg(fp->args, char*); p = str; diff --git a/src/cmd/8c/list.c b/src/cmd/8c/list.c index 3edaa2e1fb..6caafd258a 100644 --- a/src/cmd/8c/list.c +++ b/src/cmd/8c/list.c @@ -100,7 +100,7 @@ Aconv(Fmt *fp) int Dconv(Fmt *fp) { - char str[40], s[20]; + char str[STRINGSZ], s[STRINGSZ]; Adr *a; int i; @@ -258,7 +258,7 @@ char* regstr[] = int Rconv(Fmt *fp) { - char str[20]; + char str[STRINGSZ]; int r; r = va_arg(fp->args, int); @@ -274,7 +274,7 @@ int Sconv(Fmt *fp) { int i, c; - char str[100], *p, *a; + char str[STRINGSZ], *p, *a; a = va_arg(fp->args, char*); p = str; diff --git a/src/cmd/8g/list.c b/src/cmd/8g/list.c index 2a7dc277fd..9b3622a6de 100644 --- a/src/cmd/8g/list.c +++ b/src/cmd/8g/list.c @@ -73,7 +73,7 @@ Pconv(Fmt *fp) int Dconv(Fmt *fp) { - char str[100], s[100]; + char str[STRINGSZ], s[STRINGSZ]; Addr *a; int i; uint32 d1, d2; @@ -256,7 +256,7 @@ int Yconv(Fmt *fp) { int i, c; - char str[100], *p, *a; + char str[STRINGSZ], *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 8736ac88bf..a5dbba7f80 100644 --- a/src/cmd/8l/list.c +++ b/src/cmd/8l/list.c @@ -94,7 +94,7 @@ xsymname(Sym *s) int Dconv(Fmt *fp) { - char str[200], s[200]; + char str[STRINGSZ], s[STRINGSZ]; Adr *a; int i; @@ -259,7 +259,7 @@ char* regstr[] = int Rconv(Fmt *fp) { - char str[20]; + char str[STRINGSZ]; int r; r = va_arg(fp->args, int); @@ -275,7 +275,7 @@ int Sconv(Fmt *fp) { int i, c; - char str[100], *p, *a; + char str[STRINGSZ], *p, *a; a = va_arg(fp->args, char*); p = str;