Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
853f1cc3
Commit
853f1cc3
authored
Feb 01, 1997
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(process_command): Fix improper use of strncpy.
From-SVN: r13574
parent
dd05a7e7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gcc/gcc.c
+3
-3
No files found.
gcc/gcc.c
View file @
853f1cc3
/* Compiler driver program that can handle many languages.
Copyright (C) 1987, 89, 92
, 93, 94, 95,
96, 1997 Free Software Foundation, Inc.
Copyright (C) 1987, 89, 92
-
96, 1997 Free Software Foundation, Inc.
This file is part of GNU CC.
...
...
@@ -2540,9 +2540,9 @@ process_command (argc, argv)
1
,
0
,
NULL_PTR
);
else
{
char
*
string
=
xmalloc
(
len
+
1
);
char
*
string
=
xmalloc
(
len
);
strncpy
(
string
,
value
,
len
-
7
);
strc
at
(
string
,
"include"
);
strc
py
(
string
+
len
-
7
,
"include"
);
add_prefix
(
&
include_prefixes
,
string
,
1
,
0
,
NULL_PTR
);
}
...
...
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