Commit 0bd8e37b authored by Klaas Freitag's avatar Klaas Freitag

Fix off by one error.

parent 9dfdb3b1
......@@ -4,7 +4,7 @@
10/1998 partly rewriten by Andi Kleen to support an interface list.
I don't claim that the list operations are efficient @).
$Id: interface.c,v 1.13 1998/11/18 13:46:12 philip Exp $
$Id: interface.c,v 1.14 1998/11/19 05:06:04 freitag Exp $
*/
#include "config.h"
......@@ -78,7 +78,7 @@ struct interface *lookup_interface(char *name)
if (!ife) {
new(ife);
safe_strncpy(ife->name, name, IFNAMSIZ-1);
safe_strncpy(ife->name, name, IFNAMSIZ);
add_interface(ife);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment