1
0
mirror of https://github.com/golang/go synced 2024-11-25 17:57:56 -07:00

8l: fix print line number format, buffer overflow

R=ken2
https://golang.org/cl/165059
This commit is contained in:
Russ Cox 2009-12-03 23:29:48 -08:00
parent 3b858fb808
commit f2c7a20142

View File

@ -55,18 +55,18 @@ Pconv(Fmt *fp)
switch(p->as) {
case ATEXT:
if(p->from.scale) {
sprint(str, "(%ld) %A %D,%d,%D",
sprint(str, "(%d) %A %D,%d,%D",
p->line, p->as, &p->from, p->from.scale, &p->to);
break;
}
default:
sprint(str, "(%ld) %A %D,%D",
sprint(str, "(%d) %A %D,%D",
p->line, p->as, &p->from, &p->to);
break;
case ADATA:
case AINIT:
case ADYNT:
sprint(str, "(%ld) %A %D/%d,%D",
sprint(str, "(%d) %A %D/%d,%D",
p->line, p->as, &p->from, p->from.scale, &p->to);
break;
}
@ -94,7 +94,7 @@ xsymname(Sym *s)
int
Dconv(Fmt *fp)
{
char str[40], s[20];
char str[200], s[200];
Adr *a;
int i;