diff --git a/src/cmd/5g/list.c b/src/cmd/5g/list.c index dfe3bcb79cf..19027829cd8 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 64afe79fe49..ba517ca0a0e 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 eadd7481bc2..9194b1dab22 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 ecb189b83a5..195e11d1dec 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 3edaa2e1fba..6caafd258a0 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 2a7dc277fd5..9b3622a6de9 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 8736ac88bf1..a5dbba7f80c 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;