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
07d3e0dc
Commit
07d3e0dc
authored
Jan 23, 2010
by
Dean Prichard
Committed by
Russ Cox
Jan 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
5a/6a/8a: avoid fixed-sized file name buffer
R=rsc CC=golang-dev
https://golang.org/cl/186279
parent
31fb879e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
3 deletions
+8
-3
lex.c
src/cmd/5a/lex.c
+2
-1
a.h
src/cmd/6a/a.h
+1
-0
lex.c
src/cmd/6a/lex.c
+2
-1
a.h
src/cmd/8a/a.h
+1
-0
lex.c
src/cmd/8a/lex.c
+2
-1
No files found.
src/cmd/5a/lex.c
View file @
07d3e0dc
...
...
@@ -139,9 +139,10 @@ main(int argc, char *argv[])
int
assemble
(
char
*
file
)
{
char
ofile
[
100
]
,
incfile
[
20
],
*
p
;
char
*
ofile
,
incfile
[
20
],
*
p
;
int
i
,
of
;
ofile
=
alloc
(
strlen
(
file
)
+
3
);
// +3 for .x\0 (x=thechar)
strcpy
(
ofile
,
file
);
p
=
utfrrune
(
ofile
,
'/'
);
if
(
p
)
{
...
...
src/cmd/6a/a.h
View file @
07d3e0dc
...
...
@@ -168,6 +168,7 @@ EXTERN char* thestring;
EXTERN
int32
thunk
;
EXTERN
Biobuf
obuf
;
void
*
alloc
(
int32
);
void
*
allocn
(
void
*
,
int32
,
int32
);
void
errorexit
(
void
);
void
pushio
(
void
);
...
...
src/cmd/6a/lex.c
View file @
07d3e0dc
...
...
@@ -139,9 +139,10 @@ main(int argc, char *argv[])
int
assemble
(
char
*
file
)
{
char
ofile
[
100
]
,
incfile
[
20
],
*
p
;
char
*
ofile
,
incfile
[
20
],
*
p
;
int
i
,
of
;
ofile
=
alloc
(
strlen
(
file
)
+
3
);
// +3 for .x\0 (x=thechar)
strcpy
(
ofile
,
file
);
p
=
utfrrune
(
ofile
,
pathchar
());
if
(
p
)
{
...
...
src/cmd/8a/a.h
View file @
07d3e0dc
...
...
@@ -169,6 +169,7 @@ EXTERN char* thestring;
EXTERN
int32
thunk
;
EXTERN
Biobuf
obuf
;
void
*
alloc
(
int32
);
void
*
allocn
(
void
*
,
int32
,
int32
);
void
errorexit
(
void
);
void
pushio
(
void
);
...
...
src/cmd/8a/lex.c
View file @
07d3e0dc
...
...
@@ -138,9 +138,10 @@ main(int argc, char *argv[])
int
assemble
(
char
*
file
)
{
char
ofile
[
100
]
,
incfile
[
20
],
*
p
;
char
*
ofile
,
incfile
[
20
],
*
p
;
int
i
,
of
;
ofile
=
alloc
(
strlen
(
file
)
+
3
);
// +3 for .x\0 (x=thechar)
strcpy
(
ofile
,
file
);
p
=
utfrrune
(
ofile
,
pathchar
());
if
(
p
)
{
...
...
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