Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
f2c7a201
Commit
f2c7a201
authored
Dec 04, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8l: fix print line number format, buffer overflow
R=ken2
https://golang.org/cl/165059
parent
3b858fb8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
list.c
src/cmd/8l/list.c
+4
-4
No files found.
src/cmd/8l/list.c
View file @
f2c7a201
...
...
@@ -55,18 +55,18 @@ Pconv(Fmt *fp)
switch
(
p
->
as
)
{
case
ATEXT
:
if
(
p
->
from
.
scale
)
{
sprint
(
str
,
"(%
l
d) %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
,
"(%
l
d) %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
,
"(%
l
d) %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
[
2
0
];
char
str
[
200
],
s
[
20
0
];
Adr
*
a
;
int
i
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment