Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
net-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
net-tools
Commits
0bd8e37b
Commit
0bd8e37b
authored
Nov 19, 1998
by
Klaas Freitag
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix off by one error.
parent
9dfdb3b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
interface.c
interface.c
+2
-2
No files found.
interface.c
View file @
0bd8e37b
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
10/1998 partly rewriten by Andi Kleen to support an interface list.
10/1998 partly rewriten by Andi Kleen to support an interface list.
I don't claim that the list operations are efficient @).
I don't claim that the list operations are efficient @).
$Id: interface.c,v 1.1
3 1998/11/18 13:46:12 philip
Exp $
$Id: interface.c,v 1.1
4 1998/11/19 05:06:04 freitag
Exp $
*/
*/
#include "config.h"
#include "config.h"
...
@@ -78,7 +78,7 @@ struct interface *lookup_interface(char *name)
...
@@ -78,7 +78,7 @@ struct interface *lookup_interface(char *name)
if
(
!
ife
)
{
if
(
!
ife
)
{
new
(
ife
);
new
(
ife
);
safe_strncpy
(
ife
->
name
,
name
,
IFNAMSIZ
-
1
);
safe_strncpy
(
ife
->
name
,
name
,
IFNAMSIZ
);
add_interface
(
ife
);
add_interface
(
ife
);
}
}
...
...
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